From: Bernd Edlinger Date: Sun, 26 Mar 2017 21:29:41 +0000 (+0200) Subject: Add parentheses around macro argument of OSSL_NELEM. X-Git-Tag: OpenSSL_1_1_0g~160 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fd91e61f522b236d80347f0910f778314fb6ae18;p=oweals%2Fopenssl.git Add parentheses around macro argument of OSSL_NELEM. Reviewed-by: Richard Levitte Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3039) (cherry picked from commit 26dc47f3c44c7fb4488d1becaf997737486f4922) --- diff --git a/e_os.h b/e_os.h index 559bf90048..8f52dd47f6 100644 --- a/e_os.h +++ b/e_os.h @@ -521,7 +521,7 @@ struct servent *getservbyname(const char *name, const char *proto); # endif /* end vxworks */ -#define OSSL_NELEM(x) (sizeof(x)/sizeof(x[0])) +#define OSSL_NELEM(x) (sizeof(x)/sizeof((x)[0])) #ifdef __cplusplus }