summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-11-11 08:25:13 +0000
committerJosé Fonseca <[email protected]>2011-11-14 10:06:01 +0000
commit6246c217ec1d00bf94a121508802eb7e49d5b61e (patch)
treed2979333a97a22de8980606fc0b63550e4306e84 /src
parentd7edd5db31a9661e70c89cfd2fe739be386b8f36 (diff)
util: Avoid signed/unsigned comparison in u_trim_pipe_prim().
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_prim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_prim.h b/src/gallium/auxiliary/util/u_prim.h
index ca7c67d7c53..070df643d2c 100644
--- a/src/gallium/auxiliary/util/u_prim.h
+++ b/src/gallium/auxiliary/util/u_prim.h
@@ -78,7 +78,7 @@ static INLINE boolean u_validate_pipe_prim( unsigned pipe_prim, unsigned nr )
static INLINE boolean u_trim_pipe_prim( unsigned pipe_prim, unsigned *nr )
{
boolean ok = TRUE;
- const static int values[][2] = {
+ const static unsigned values[][2] = {
{ 1, 0 }, /* PIPE_PRIM_POINTS */
{ 2, 2 }, /* PIPE_PRIM_LINES */
{ 2, 0 }, /* PIPE_PRIM_LINE_LOOP */