From 2826212dc79b90fcb008b72e5c1fdc34e8a1ac71 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 20 Sep 2014 08:32:39 -0600 Subject: [PATCH] glsl: use ptrdiff_t cast to silence g++ sign warning Reviewed-by: Ian Romanick --- 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 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) { -- 2.30.2