Bug 1322464 - Fix an invalid assignment in assertion expression. r?froydnj draft bug-1322464
authorTing-Yu Chou <janus926@gmail.com>
Thu, 08 Dec 2016 22:04:08 +0800
changeset 447869 f25705d35e46e7efe41927996299fee2e988e6e5
parent 447759 c2526f6786f074888d71c8e166a02aea3e19e75b
child 539161 1a3a294bc93f45be1140d431ed40415157df10d8
push id38203
push userbmo:janus926@gmail.com
push dateThu, 08 Dec 2016 14:09:19 +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