Bug 1404147 Fix signed/unsigned comparison of uints r=jld
authorTom Ritter <tom@mozilla.com>
Thu, 28 Sep 2017 17:45:46 -0500
changeset 675181 f4cb27775f6289f7284b1772165208210f76ba36
parent 675180 cc50c0ad627c44d3dba5344c001018bba69f37da
child 675182 c5b45a4eddac6c0abb5a35891e9a7132f19aa4ff
push id83058
push userbwerth@mozilla.com
push dateWed, 04 Oct 2017 23:14:13 +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);
     }