Bug 509188 - Fix OS/2-only build break in nsCanvasRenderingContext2D.cpp, r=bzbarsky
authorPeter Weilbacher <mozilla@Weilbacher.org>
Mon, 10 Aug 2009 10:39:02 +0200
changeset 31279 a2c2235ca124902fab3d4ac1254917cd5d476597
parent 31278 cabad98babdbd2bc855767ffdbb833ed606e58a8
child 31280 f434af8fee98483bd04bd4ac3c468066d5057bac
push id8472
push usermozilla@weilbacher.org
push dateMon, 10 Aug 2009 08:38:48 +0000
treeherdermozilla-central@a2c2235ca124 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs509188
milestone1.9.2a2pre
Bug 509188 - Fix OS/2-only build break in nsCanvasRenderingContext2D.cpp, r=bzbarsky
content/canvas/src/nsCanvasRenderingContext2D.cpp
--- a/content/canvas/src/nsCanvasRenderingContext2D.cpp
+++ b/content/canvas/src/nsCanvasRenderingContext2D.cpp
@@ -3524,17 +3524,17 @@ nsCanvasRenderingContext2D::GetImageData
 
 extern "C" {
 #include "jstypes.h"
 JS_FRIEND_API(JSBool)
 js_CoerceArrayToCanvasImageData(JSObject *obj, jsuint offset, jsuint count,
                                 JSUint8 *dest);
 }
 
-static inline PRUint8 ToUint8(PRInt32 aInput)
+static inline PRUint8 ToUint8(jsint aInput)
 {
     if (PRUint32(aInput) > 255)
         return (aInput < 0) ? 0 : 255;
     return PRUint8(aInput);
 }
 
 static inline PRUint8 ToUint8(double aInput)
 {