diff --git a/src/erasurecode_helpers.c b/src/erasurecode_helpers.c index 5068b27..40db93c 100644 --- a/src/erasurecode_helpers.c +++ b/src/erasurecode_helpers.c @@ -65,7 +65,7 @@ void *get_aligned_buffer16(int size) * Ensure all memory is aligned to 16-byte boundaries * to support 128-bit operations */ - if (posix_memalign(&buf, 16, size) < 0) { + if (posix_memalign(&buf, 16, size) != 0) { return NULL; }