Add parentheses around macro argument of OSSL_NELEM.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3039)
This commit is contained in:
Bernd Edlinger 2017-03-26 23:29:41 +02:00 committed by Rich Salz
parent aa8f3d76fc
commit 26dc47f3c4

2
e_os.h
View file

@ -539,7 +539,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 FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
# define CRYPTO_memcmp memcmp