Bug 1404147 Fix signed/unsigned comparison of uints draft
authorTom Ritter <tom@mozilla.com>
Thu, 28 Sep 2017 17:45:46 -0500
changeset 672673 e867fa6a5f37eeebf4e433c9a833cf1ed707ce58
parent 672672 1ddefad2d541317dd58870e733218c0b73889ff0
child 672674 eb9bc5e3b4e583d45bab681e7292ba1c35123b4a
push id82329
push userbmo:tom@mozilla.com
push dateFri, 29 Sep 2017 16:06:00 +0000
bugs1404147
milestone58.0a1
Bug 1404147 Fix signed/unsigned comparison of uints 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);
     }