Skip to content

Commit

Permalink
Add parentheses around macro argument of OSSL_NELEM.
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #3039)
  • Loading branch information
bernd-edlinger authored and Rich Salz committed Jun 20, 2017
1 parent aa8f3d7 commit 26dc47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e_os.h
Expand Up @@ -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
Expand Down

0 comments on commit 26dc47f

Please sign in to comment.