Bug 1057793: Fix build warning on MSVC 2013, r=keeler
authorBrian Smith <brian@briansmith.org>
Sun, 17 Aug 2014 16:49:19 -0700
changeset 224161 8ff0094b610dd8b1f5e3ec5e26462244b59b62fe
parent 224160 567fd3fb6867015017caa7ab0cdabd58132805d8
child 224162 2a11f29863a1a59ad2b13d4d72f6e9c5577f2c76
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskeeler
bugs1057793
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1057793: Fix build warning on MSVC 2013, r=keeler
security/pkix/include/pkix/Result.h
--- a/security/pkix/include/pkix/Result.h
+++ b/security/pkix/include/pkix/Result.h
@@ -99,17 +99,17 @@ MOZILLA_PKIX_ENUM_CLASS Result
 // fail if we try to define a variable with that name here.
 #if !defined(_MSC_VER) || (_MSC_VER >= 1700)
 static const Result Success = Result::Success;
 #endif
 
 inline bool
 IsFatalError(Result rv)
 {
-  return static_cast<unsigned int>(rv) & FATAL_ERROR_FLAG;
+  return (static_cast<unsigned int>(rv) & FATAL_ERROR_FLAG) != 0;
 }
 
 inline Result
 NotReached(const char* /*explanation*/, Result result)
 {
   assert(false);
   return result;
 }