Module: Mesa
Branch: master
Commit: 14ba6c9325229270d3f04c13253ca547f9a216ff
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=14ba6c9325229270d3f04c13253ca547f9a216ff

Author: Brian Paul <[email protected]>
Date:   Tue Mar 10 08:18:27 2015 -0600

i915: add parens to silence operator precedence warning

Signed-off-by: Brian Paul <[email protected]>

---

 src/mesa/drivers/dri/i915/i915_debug_fp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i915/i915_debug_fp.c 
b/src/mesa/drivers/dri/i915/i915_debug_fp.c
index 3f09902..d107c5a 100644
--- a/src/mesa/drivers/dri/i915/i915_debug_fp.c
+++ b/src/mesa/drivers/dri/i915/i915_debug_fp.c
@@ -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) {

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to