From: José Fonseca Date: Fri, 10 Apr 2009 09:02:58 +0000 (+0100) Subject: stw: Don't make assumptions about integer size. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0dd81ec97b4fd88fa9267f409a115a98344bc2fe;p=mesa.git stw: Don't make assumptions about integer size. --- diff --git a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c b/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c index 7e49889a92a..543ed3d54d5 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c +++ b/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c @@ -205,7 +205,7 @@ int stw_pixelformat_choose( HDC hdc, count = stw_pixelformat_get_count(); bestindex = count; - bestdelta = 0xffffffff; + bestdelta = ~0U; for (index = 0; index < count; index++) { uint delta = 0;