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

(cherry picked from 410e5b1d73 commit)
This commit is contained in:
Aaron Plattner 2006-09-05 15:23:54 -07:00
parent 1c72290cdf
commit f39fd42429

View File

@ -68,7 +68,7 @@ fbPutImage (DrawablePtr pDrawable,
break;
case XYPixmap:
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)
{