Mesa (master): glsl: use ptrdiff_t cast to silence g++ sign warning
Brian Paul
brianp at kemper.freedesktop.org
Mon Sep 22 22:59:46 UTC 2014
Module: Mesa
Branch: master
Commit: 2826212dc79b90fcb008b72e5c1fdc34e8a1ac71
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2826212dc79b90fcb008b72e5c1fdc34e8a1ac71
Author: Brian Paul <brianp at vmware.com>
Date: Sat Sep 20 08:32:39 2014 -0600
glsl: use ptrdiff_t cast to silence g++ sign warning
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/glsl/link_uniforms.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
index 258d279..a6683a0 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) {
More information about the mesa-commit
mailing list