gallium: Add extra parenthesis as advised by gcc.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 19 Jun 2008 12:16:16 +0000 (21:16 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 19 Jun 2008 12:17:33 +0000 (21:17 +0900)
src/gallium/auxiliary/util/p_debug_mem.c

index 51dbd0a710104632fefde7701cbc8c148c2b7c83..ed18c6540eab9817bf2a04f0d1727b13bfafd67d 100644 (file)
@@ -263,8 +263,8 @@ debug_memory_end(unsigned long start_no)
       void *ptr;
       hdr = LIST_ENTRY(struct debug_memory_header, entry, head);
       ptr = data_from_header(hdr);
-      if(start_no <= hdr->no && hdr->no < last_no ||
-        last_no < start_no && (hdr->no < last_no || start_no <= hdr->no)) {
+      if((start_no <= hdr->no && hdr->no < last_no) ||
+        (last_no < start_no && (hdr->no < last_no || start_no <= hdr->no))) {
         debug_printf("%s:%u:%s: %u bytes at %p not freed\n",
                      hdr->file, hdr->line, hdr->function,
                      hdr->size, ptr);