[Mesa-dev] [PATCH 5/7] wgl: stw_pixelformat_get_info: correct type for index variable

Alon Levy alevy at redhat.com
Tue Jul 22 14:07:04 PDT 2014


Signed-off-by: Alon Levy <alevy at redhat.com>
---
 src/gallium/state_trackers/wgl/stw_pixelformat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/wgl/stw_pixelformat.c b/src/gallium/state_trackers/wgl/stw_pixelformat.c
index 1ef302d..7e5561b 100644
--- a/src/gallium/state_trackers/wgl/stw_pixelformat.c
+++ b/src/gallium/state_trackers/wgl/stw_pixelformat.c
@@ -297,7 +297,7 @@ stw_pixelformat_get_extended_count( void )
 const struct stw_pixelformat_info *
 stw_pixelformat_get_info( int iPixelFormat )
 {
-   int index;
+   unsigned index;
 
    if (iPixelFormat <= 0) {
       return NULL;
-- 
1.9.3



More information about the mesa-dev mailing list