Bug 1322464 - Fix an invalid assignment in assertion expression. r=froydnj
authorTing-Yu Chou <janus926@gmail.com>
Thu, 08 Dec 2016 22:04:08 +0800
changeset 325407 406807fc751e318705f6b775d892b8aaf02cf66f
parent 325406 a5c688e01e3bc636ae93c1e64944e3c829073180
child 325408 0f120c4b9c96f9cd152855fdb5b369832797eb2a
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersfroydnj
bugs1322464
milestone53.0a1
Bug 1322464 - Fix an invalid assignment in assertion expression. r=froydnj MozReview-Commit-ID: EFCSnfxnreT
js/src/threading/windows/ConditionVariable.cpp
--- a/js/src/threading/windows/ConditionVariable.cpp
+++ b/js/src/threading/windows/ConditionVariable.cpp
@@ -263,17 +263,17 @@ public:
       releaseSleepWakeupSemaphore = true;
 
     } else if (wakeupMode == WAKEUP_MODE_ALL && sleepersCount == 0) {
       // If this was the last thread waking up in response to a
       // notify_all, clear the wakeup mode and reset the wake-all event.
       // A race condition similar to the case described above could
       // occur, so waitResult could be WAIT_TIMEOUT, but that doesn't
       // matter for the actions that need to be taken.
-      MOZ_RELEASE_ASSERT(waitResult = WAIT_OBJECT_0 + 1 ||
+      MOZ_RELEASE_ASSERT(waitResult == WAIT_OBJECT_0 + 1 ||
                          waitResult == WAIT_TIMEOUT);
 
       BOOL success = ResetEvent(wakeAllEvent_);
       MOZ_RELEASE_ASSERT(success);
 
       sleepersCountAndWakeupMode_ = 0 | WAKEUP_MODE_NONE;
 
       // The broadcasting thread has acquired the enter-wakeup semaphore