summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/opj_malloc.c
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2015-10-10 21:03:44 +0200
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2015-10-10 21:03:44 +0200
commitab8929262a66852e8b17fb63b79bca1671a77a1e (patch)
tree643f18f9cf0affc63c6a425768c8e50abbf90932 /src/lib/openjp2/opj_malloc.c
parentdc869c2985c8ee346089e61414899ae7aa2e00f5 (diff)
Fix an issue with parenthesis
Diffstat (limited to 'src/lib/openjp2/opj_malloc.c')
-rw-r--r--src/lib/openjp2/opj_malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/opj_malloc.c b/src/lib/openjp2/opj_malloc.c
index 4c9de50f..85a5716b 100644
--- a/src/lib/openjp2/opj_malloc.c
+++ b/src/lib/openjp2/opj_malloc.c
@@ -67,7 +67,7 @@ static inline void *opj_aligned_realloc_n(void *ptr, size_t alignment, size_t si
/* glibc doc states one can mixed aligned malloc with realloc */
void *r_ptr = realloc( ptr, size );
/* fast path */
- if( (uintptr_t)r_ptr & alignment == 0 )
+ if( ((uintptr_t)r_ptr & alignment) == 0 )
return r_ptr;
/* this is non-trivial to implement a portable aligned realloc, so use a
* simple approach where we do not need a function that return the size of an