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 idunknown
push userunknown
push dateunknown
bugs870480
milestone23.0a1
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