projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7edd5d
)
util: Avoid signed/unsigned comparison in u_trim_pipe_prim().
author
José Fonseca
<jfonseca@vmware.com>
Fri, 11 Nov 2011 08:25:13 +0000
(08:25 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 14 Nov 2011 10:06:01 +0000
(10:06 +0000)
src/gallium/auxiliary/util/u_prim.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_prim.h
b/src/gallium/auxiliary/util/u_prim.h
index ca7c67d7c5327fe26b16cb55982c77cd451805fe..070df643d2c18edf8c3b2e9d5786f765b16d4379 100644
(file)
--- 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 */