Bug 1482219: Fix NativeNt clang-cl warnings; r=mhowell
authorAaron Klotz <aklotz@mozilla.com>
Wed, 08 Aug 2018 14:47:29 -0600
changeset 486122 9705ac8fbee347f99503d2fa1723143bbdd3bdb8
parent 486121 d7e288a6599d1f8e7bec7e4f9f764e73812371fb
child 486123 64c7e3b34869ce65e1ece5ff6bc61dcd17d94fe9
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmhowell
bugs1482219
milestone63.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 1482219: Fix NativeNt clang-cl warnings; r=mhowell
browser/app/winlauncher/NativeNt.h
--- a/browser/app/winlauncher/NativeNt.h
+++ b/browser/app/winlauncher/NativeNt.h
@@ -120,19 +120,19 @@ FindCharInUnicodeString(const UNICODE_ST
   }
 
   return false;
 }
 
 inline bool
 IsHexDigit(WCHAR aChar)
 {
-  return aChar >= L'0' && aChar <= L'9' ||
-         aChar >= L'A' && aChar <= L'F' ||
-         aChar >= L'a' && aChar <= L'f';
+  return (aChar >= L'0' && aChar <= L'9') ||
+         (aChar >= L'A' && aChar <= L'F') ||
+         (aChar >= L'a' && aChar <= L'f');
 }
 
 inline bool
 MatchUnicodeString(const UNICODE_STRING& aStr, bool (*aPredicate)(WCHAR))
 {
   WCHAR* cur = aStr.Buffer;
   WCHAR* end = &aStr.Buffer[aStr.Length / sizeof(WCHAR)];
   while (cur < end) {