From: Andrea Zagli Date: Fri, 2 Apr 2021 10:16:43 +0000 (+0200) Subject: Brackets in macro to not induce errors. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=4645af1f644f60f032540707f15657289ea1bf91;p=libzakutils Brackets in macro to not induce errors. --- diff --git a/src/generic.h b/src/generic.h index c8d5b6a..d8f1b48 100644 --- a/src/generic.h +++ b/src/generic.h @@ -78,11 +78,11 @@ void zak_utils_ghashtable_copy (GHashTable *ht_source, GHashTable *ht_dest); #define ZU_STRCMP(str, value) \ - g_strcmp0 (str, value) == 0 + (g_strcmp0 (str, value) == 0) #define ZU_STRTOL(str) \ - str == NULL ? 0 : strtol (str, NULL, 10) + (str == NULL ? 0 : strtol (str, NULL, 10)) G_END_DECLS