summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2006-09-05 15:23:54 -0700
committerAaron Plattner <aplattner@nvidia.com>2006-09-05 15:23:54 -0700
commit410e5b1d738ba47b36778e6cbed44023a27ce259 (patch)
tree8f1dcaed3c3d758af5836478df01ecf437050ec7
parentc2813514cf7b1a36caa848cbc2ceef99cf2eb769 (diff)
(unsigned long)(1 << 31) = bad news on x86_64.
-rw-r--r--fb/fbimage.c2
1 files changed, 1 insertions, 1 deletions
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)
{