From: Kevin Day Date: Sat, 5 Aug 2023 00:33:08 +0000 (-0500) Subject: Cleanup: Add extra parenthesis to prevent warning from clang. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=a4586e2e472c86b659eb5df4f049e8e414859517;p=fll Cleanup: Add extra parenthesis to prevent warning from clang. --- diff --git a/level_0/f_memory/c/memory.c b/level_0/f_memory/c/memory.c index 9e9cc5b..1f6c929 100644 --- a/level_0/f_memory/c/memory.c +++ b/level_0/f_memory/c/memory.c @@ -83,7 +83,7 @@ extern "C" { // Prevent double-allocations and unnecessary frees. if (*pointer || !length) return F_data_not; - if (*pointer = calloc(length, size)) return F_none; + if ((*pointer = calloc(length, size))) return F_none; return F_status_set_error(F_memory_not); }