Mesa (master): stw: Don't make assumptions about integer size.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Apr 10 12:26:40 UTC 2009


Module: Mesa
Branch: master
Commit: 0dd81ec97b4fd88fa9267f409a115a98344bc2fe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0dd81ec97b4fd88fa9267f409a115a98344bc2fe

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Apr 10 10:02:58 2009 +0100

stw: Don't make assumptions about integer size.

---

 .../state_trackers/wgl/shared/stw_pixelformat.c    |    2 +-
 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 7e49889..543ed3d 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;




More information about the mesa-commit mailing list