wgl: stw_pixelformat_get_info: correct type for index variable
authorAlon Levy <alevy@redhat.com>
Tue, 22 Jul 2014 21:07:04 +0000 (00:07 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 23 Oct 2014 13:45:40 +0000 (14:45 +0100)
Signed-off-by: Alon Levy <alevy@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/wgl/stw_pixelformat.c

index 96169e2b5f96d387efcf47334bdf13e37528e671..b0cd5abd27afa713e371d7ebdec04fe177899b9f 100644 (file)
@@ -303,7 +303,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;