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 131514 3044afa610b2bf2da2893a4fbedb86161ee36ee9
parent 131513 aee46daa226279adc52e2f30f1b825418cfb9f0e
child 131515 844adf9c7f2e7c13e620151a3d6221ad5e6a7261
push id24660
push userryanvm@gmail.com
push dateFri, 10 May 2013 18:56:27 +0000
treeherdermozilla-central@1d7c615b4b62 [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