From 6d092ba5ea0fdfa11ff0be94cd63ae7876622c0b Mon Sep 17 00:00:00 2001 From: Ting-Yu Chou Date: Thu, 8 Dec 2016 22:04:08 +0800 Subject: [PATCH] Bug 1322464 - Fix an invalid assignment in assertion expression. r=froydnj MozReview-Commit-ID: EFCSnfxnreT --HG-- extra : rebase_source : 92636764a12eda78315a9a62d81709913078fd41 --- js/src/threading/windows/ConditionVariable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/threading/windows/ConditionVariable.cpp b/js/src/threading/windows/ConditionVariable.cpp index 868c351416be..5bc80bfbb030 100644 --- a/js/src/threading/windows/ConditionVariable.cpp +++ b/js/src/threading/windows/ConditionVariable.cpp @@ -268,7 +268,7 @@ public: // 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_);