(unsigned long)(1 << 31) = bad news on x86_64.

This commit is contained in:
Aaron Plattner 2006-09-05 15:23:54 -07:00
parent c2813514cf
commit 410e5b1d73

View File

@ -68,7 +68,7 @@ fbPutImage (DrawablePtr pDrawable,
break; break;
case XYPixmap: case XYPixmap:
srcStride = BitmapBytePad(w + leftPad) / sizeof (FbStip); srcStride = BitmapBytePad(w + leftPad) / sizeof (FbStip);
for (i = 1 << (pDrawable->depth - 1); i; i >>= 1) for (i = (unsigned long)1 << (pDrawable->depth - 1); i; i >>= 1)
{ {
if (i & pGC->planemask) if (i & pGC->planemask)
{ {