From 410e5b1d738ba47b36778e6cbed44023a27ce259 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Tue, 5 Sep 2006 15:23:54 -0700 Subject: [PATCH] (unsigned long)(1 << 31) = bad news on x86_64. --- fb/fbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fb/fbimage.c b/fb/fbimage.c index bf5c06b57..3b4a07c3d 100644 --- a/fb/fbimage.c +++ b/fb/fbimage.c @@ -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) {