i915: add parens to silence operator precedence warning
authorBrian Paul <brianp@vmware.com>
Tue, 10 Mar 2015 14:18:27 +0000 (08:18 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 11 Mar 2015 15:34:07 +0000 (09:34 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/i915/i915_debug_fp.c

index 3f0990226401c0d360edd85d8c118c68aeff5093..d107c5afb381c28591e71befd0dd49ff07e97227 100644 (file)
@@ -303,7 +303,7 @@ i915_disassemble_program(const GLuint * program, GLuint sz)
 
    printf("\t\tBEGIN\n");
 
-   assert(program[0] & 0x1ff + 2 == sz);
+   assert((program[0] & 0x1ff) + 2 == sz);
 
    program++;
    for (i = 1; i < sz; i += 3, program += 3) {