]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix a compiler warning
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 5 Mar 2023 15:34:50 +0000 (16:34 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 5 Mar 2023 15:34:50 +0000 (16:34 +0100)
coregrind/m_replacemalloc/vg_replace_malloc.c

index c781da5989e9c7779c847ab4500ae8ea4c856d51..cbb9f038e4180eb6fa01e5b5302701230556e06c 100644 (file)
@@ -1984,7 +1984,7 @@ extern int *___errno (void) __attribute__((weak));
        \
        MALLOC_TRACE("aligned_alloc(al %llu, size %llu)", \
                 (ULong)alignment, (ULong)size ); \
-       if (VG_ALIGNED_ALLOC_SIZE_ZERO && (alignment == 0) \
+       if ((VG_ALIGNED_ALLOC_SIZE_ZERO && (alignment == 0)) \
            || (VG_ALIGNED_ALLOC_SIZE_MULTIPLE_ALIGN && (size % alignment != 0)) \
            || (VG_ALIGNED_ALLOC_ALIGN_POWER_TWO && (alignment & (alignment - 1)) != 0) \
            || (VG_ALIGNED_ALLOC_ALIGN_FACTOR_FOUR && (alignment % 4 != 0))) { \