summaryrefslogtreecommitdiff
path: root/fb/fbimage.c
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:53:45 -0700
commitf39fd4242902eaa862321d39337f429dd14ebacf (patch)
tree653ff6fcd77b1b1d829a23ff210a409fe012f742 /fb/fbimage.c
parent1c72290cdf4d9b214e1b9c0526cb7cb8641051f3 (diff)
downloadxserver-f39fd4242902eaa862321d39337f429dd14ebacf.tar.gz
(unsigned long)(1 << 31) = bad news on x86_64.
(cherry picked from 410e5b1d738ba47b36778e6cbed44023a27ce259 commit)
Diffstat (limited to 'fb/fbimage.c')
-rw-r--r--fb/fbimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb/fbimage.c b/fb/fbimage.c
index 479870991..06a3c84fe 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)
{