Bug 870480 - Follow-up: Try to fix a warning-as-error.

> error: suggest parentheses around comparison in operand of '!='
This commit is contained in:
Justin Lebar 2013-05-10 11:58:09 -04:00
parent 772e3b6ff9
commit f0d0f1383d

View File

@ -253,7 +253,7 @@ ModifyWakeLock(const nsAString& aTopic,
if (sActiveListeners &&
(oldState != ComputeWakeLockState(totalCount.numLocks,
totalCount.numHidden) ||
processWasLocked != processCount.numLocks > 0)) {
processWasLocked != (processCount.numLocks > 0))) {
WakeLockInformation info;
GetWakeLockInfo(aTopic, &info);