projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b08e1
)
glsl: use ptrdiff_t cast to silence g++ sign warning
author
Brian Paul
<brianp@vmware.com>
Sat, 20 Sep 2014 14:32:39 +0000
(08:32 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 22 Sep 2014 22:56:23 +0000
(16:56 -0600)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/link_uniforms.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/link_uniforms.cpp
b/src/glsl/link_uniforms.cpp
index 258d279ea1730b21103e3dab6399f9cd95d1080b..a6683a09b2e1205e503a3e19b0304cc1c1abedba 100644
(file)
--- a/
src/glsl/link_uniforms.cpp
+++ b/
src/glsl/link_uniforms.cpp
@@
-749,7
+749,7
@@
link_update_uniform_buffer_variables(struct gl_shader *shader)
if (end == NULL)
continue;
- if (l != (end - begin))
+ if (
(ptrdiff_t)
l != (end - begin))
continue;
if (strncmp(var->name, begin, l) == 0) {