From 9155cfca75a207bce0fad945f32f0cb33eab8c4e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 9 Jul 2009 14:16:07 -0700 Subject: [PATCH] Fix lols in trying to figure out whether this is a 64-bit build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Noticed by: Michel Dänzer --- src/i830_uxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);