summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-06-19 21:16:16 +0900
committerJosé Fonseca <[email protected]>2008-06-19 21:17:33 +0900
commitc5bf215b1b955c8dafeae84a5f526052fd2e0256 (patch)
tree0886e89bd2eceacc0c7711096420ff711ffa8196 /src/gallium/auxiliary
parentb440cea343b007ca97edb2cd4e1e6150c989417b (diff)
gallium: Add extra parenthesis as advised by gcc.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/p_debug_mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/p_debug_mem.c b/src/gallium/auxiliary/util/p_debug_mem.c
index 51dbd0a7101..ed18c6540ea 100644
--- a/src/gallium/auxiliary/util/p_debug_mem.c
+++ b/src/gallium/auxiliary/util/p_debug_mem.c
@@ -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);