summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-04-10 10:02:58 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-04-10 13:26:34 +0100
commit0dd81ec97b4fd88fa9267f409a115a98344bc2fe (patch)
treebe9b9b8458a84235462f6a4daf683d1cea3fa522
parentf14497a9cd160106bd69ed37a89e24c77050a394 (diff)
stw: Don't make assumptions about integer size.
-rw-r--r--src/gallium/state_trackers/wgl/shared/stw_pixelformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c b/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c
index 7e49889a92..543ed3d54d 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;