diff options
author | Brian Paul <[email protected]> | 2014-09-20 08:32:39 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-09-22 16:56:23 -0600 |
commit | 2826212dc79b90fcb008b72e5c1fdc34e8a1ac71 (patch) | |
tree | adfde9315dc7c263059f3328053c72679c682379 /src | |
parent | 19b08e1bb3a3508049d0527743b2f50f855a24c2 (diff) |
glsl: use ptrdiff_t cast to silence g++ sign warning
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/link_uniforms.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 258d279ea17..a6683a09b2e 100644 --- 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) { |