diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2009-04-20 09:43:09 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2009-04-20 09:43:09 +0800 |
commit | 08ebde4715b87867184d42b60762cd774e151f5c (patch) | |
tree | 8594e2ac60519d8fa49c5af4f10d6d29434ede14 /src/i830_driver.c | |
parent | 5a07ab502fe1e58e7e37fe554fb42d8d2c8c53ec (diff) |
fix overflow warning on videoRam
Note that pScrn->videoRam is an 'int'.
i830_driver.c: In function ‘I830ScreenInit’:
i830_driver.c:3019: warning: overflow in implicit constant conversion
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index 6ff5a1de..6ec2cdde 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -3016,7 +3016,7 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) if (pI830->use_drm_mode) { #ifdef XF86DRM_MODE pI830->stolen_size = 0; - pScrn->videoRam = ~0UL / KB(1); + pScrn->videoRam = INT_MAX / KB(1); #endif } else { I830AdjustMemory(pScreen); |