glsl: use ptrdiff_t cast to silence g++ sign warning
authorBrian Paul <brianp@vmware.com>
Sat, 20 Sep 2014 14:32:39 +0000 (08:32 -0600)
committerBrian 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

index 258d279ea1730b21103e3dab6399f9cd95d1080b..a6683a09b2e1205e503a3e19b0304cc1c1abedba 100644 (file)
@@ -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) {