Bug 870480 - Follow-up: Try to fix a warning-as-error.
authorJustin Lebar <justin.lebar@gmail.com>
Fri, 10 May 2013 11:58:09 -0400
changeset 142461 3044afa610b2bf2da2893a4fbedb86161ee36ee9
parent 142460 aee46daa226279adc52e2f30f1b825418cfb9f0e
child 142462 844adf9c7f2e7c13e620151a3d6221ad5e6a7261
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs870480
milestone23.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 870480 - Follow-up: Try to fix a warning-as-error. > error: suggest parentheses around comparison in operand of '!='
hal/HalWakeLock.cpp
--- a/hal/HalWakeLock.cpp
+++ b/hal/HalWakeLock.cpp
@@ -248,17 +248,17 @@ ModifyWakeLock(const nsAString& aTopic,
   }
   if (!totalCount.numLocks) {
     sLockTable->Remove(aTopic);
   }
 
   if (sActiveListeners &&
       (oldState != ComputeWakeLockState(totalCount.numLocks,
                                         totalCount.numHidden) ||
-       processWasLocked != processCount.numLocks > 0)) {
+       processWasLocked != (processCount.numLocks > 0))) {
 
     WakeLockInformation info;
     GetWakeLockInfo(aTopic, &info);
     NotifyWakeLockChange(info);
   }
 }
 
 void