Bug 1015871 - Wrong uint32_t type when reading the number of touch events in nsGuiEventIPC.h. r=smaug
☠☠ backed out by 616163ca1aa5 ☠ ☠
authorVivien Nicolas <vnicolas@mozilla.com>
Wed, 04 Jun 2014 20:11:05 +0200
changeset 206968 59df0cdacc15bfec459c8e8e0c989bc164caed5c
parent 206967 e7124b07804b86f825ae2e991832b32cf69ae11c
child 206969 4e23647ae2470a3022a17a2f2e065d9fdac013d1
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1015871
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1015871 - Wrong uint32_t type when reading the number of touch events in nsGuiEventIPC.h. r=smaug
widget/nsGUIEventIPC.h
--- a/widget/nsGUIEventIPC.h
+++ b/widget/nsGUIEventIPC.h
@@ -255,17 +255,17 @@ struct ParamTraits<mozilla::WidgetTouchE
       WriteParam(aMsg, touch->mRadius);
       WriteParam(aMsg, touch->mRotationAngle);
       WriteParam(aMsg, touch->mForce);
     }
   }
 
   static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
   {
-    uint32_t numTouches;
+    size_t numTouches;
     if (!ReadParam(aMsg, aIter,
                    static_cast<mozilla::WidgetInputEvent*>(aResult)) ||
         !ReadParam(aMsg, aIter, &numTouches)) {
       return false;
     }
     for (uint32_t i = 0; i < numTouches; ++i) {
         int32_t identifier;
         mozilla::LayoutDeviceIntPoint refPoint;