Bug 1404147 Fix signed/unsigned comparison of uints r?jld draft
authorTom Ritter <tom@mozilla.com>
Thu, 28 Sep 2017 17:45:46 -0500
changeset 674378 e28f27008ea914312b21f79ae5d4f3d55efd6f66
parent 674377 39366c8bb16836167ebe64ff6279cea66c8316c9
child 674379 0d3087b7b28ac0dd92d6b4b6da46fd4a43345a4d
push id82814
push userbmo:tom@mozilla.com
push dateTue, 03 Oct 2017 17:51:18 +0000
reviewersjld
bugs1404147
milestone58.0a1
Bug 1404147 Fix signed/unsigned comparison of uints r?jld MozReview-Commit-ID: 7z3JocWOrW5
ipc/glue/WindowsMessageLoop.cpp
--- a/ipc/glue/WindowsMessageLoop.cpp
+++ b/ipc/glue/WindowsMessageLoop.cpp
@@ -226,17 +226,17 @@ ScheduleDeferredMessageRun()
 static void
 DumpNeuteredMessage(HWND hwnd, UINT uMsg)
 {
 #ifdef DEBUG
   nsAutoCString log("Received \"nonqueued\" ");
   // classify messages
   if (uMsg < WM_USER) {
     int idx = 0;
-    while (mozilla::widget::gAllEvents[idx].mId != (long)uMsg &&
+    while (mozilla::widget::gAllEvents[idx].mId != uMsg &&
            mozilla::widget::gAllEvents[idx].mStr != nullptr) {
       idx++;
     }
     if (mozilla::widget::gAllEvents[idx].mStr) {
       log.AppendPrintf("ui message \"%s\"", mozilla::widget::gAllEvents[idx].mStr);
     } else {
       log.AppendPrintf("ui message (0x%X)", uMsg);
     }