projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a7602b
)
mesa: fix signed/unsigned comparison warnings
author
Brian Paul
<brianp@vmware.com>
Mon, 26 Dec 2011 21:45:42 +0000
(14:45 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 26 Dec 2011 22:22:26 +0000
(15:22 -0700)
src/mesa/main/uniform_query.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/main/uniform_query.cpp
b/src/mesa/main/uniform_query.cpp
index 33ba53c2e7bf8197641c7942da3225edbe02c023..f3d6a16eef9debab0e949de64fbc19a1fd7c8547 100644
(file)
--- a/
src/mesa/main/uniform_query.cpp
+++ b/
src/mesa/main/uniform_query.cpp
@@
-648,7
+648,7
@@
_mesa_uniform(struct gl_context *ctx, struct gl_shader_program *shProg,
if (offset >= uni->array_elements)
return;
- count = MIN2(count, (uni->array_elements - offset));
+ count = MIN2(count, (
int) (
uni->array_elements - offset));
}
FLUSH_VERTICES(ctx, _NEW_PROGRAM_CONSTANTS);
@@
-797,7
+797,7
@@
_mesa_uniform_matrix(struct gl_context *ctx, struct gl_shader_program *shProg,
if (offset >= uni->array_elements)
return;
- count = MIN2(count, (uni->array_elements - offset));
+ count = MIN2(count, (
int) (
uni->array_elements - offset));
}
FLUSH_VERTICES(ctx, _NEW_PROGRAM_CONSTANTS);