summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-07-09 14:16:07 -0700
committerEric Anholt <eric@anholt.net>2009-07-09 14:16:07 -0700
commit9155cfca75a207bce0fad945f32f0cb33eab8c4e (patch)
tree23c4edcb4108af6546aefa20176e29652cee75d6
parent40e7c9505265823786cf730214db84812a5e494e (diff)
downloadxorg-driver-xf86-video-intel-9155cfca75a207bce0fad945f32f0cb33eab8c4e.tar.gz
Fix lols in trying to figure out whether this is a 64-bit build.
Noticed by: Michel Dänzer <michel@daenzer.net>
-rw-r--r--src/i830_uxa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_uxa.c b/src/i830_uxa.c
index ef7ac84a..f4238054 100644
--- a/src/i830_uxa.c
+++ b/src/i830_uxa.c
@@ -638,7 +638,7 @@ i830_uxa_create_pixmap (ScreenPtr screen, int w, int h, int depth, unsigned usag
* Note that size should fit in 32 bits. We throw out >32767x32767x4,
* and pitch alignment could get us up to 32768x32767x4.
*/
- if (sizeof(unsigned int) == 4 &&
+ if (sizeof(unsigned long) == 4 &&
size > (unsigned int)(1024 * 1024 * 1024))
{
fbDestroyPixmap (pixmap);