Bug 509188 - Fix OS/2-only build break in nsCanvasRenderingContext2D.cpp, r=bzbarsky

This commit is contained in:
Peter Weilbacher 2009-08-10 10:39:02 +02:00
parent f1ff7ed601
commit 2a9b37074c

View File

@ -3529,7 +3529,7 @@ 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;