1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Added parentheses to silence sizeof-array-div warnings [Bug #17385]

As well as 2366c68116.
This commit is contained in:
Nobuyoshi Nakada 2020-12-12 14:22:59 +09:00
parent 52bca75cde
commit 68af523529
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -37,7 +37,7 @@
/** @cond INTERNAL_MACRO */
#define RBIMPL_EMBED_LEN_MAX_OF(T) \
RBIMPL_CAST((int)(sizeof(VALUE[RVALUE_EMBED_LEN_MAX]) / sizeof(T)))
RBIMPL_CAST((int)(sizeof(VALUE[RVALUE_EMBED_LEN_MAX]) / (sizeof(T))))
/** @endcond */
enum ruby_rvalue_flags { RVALUE_EMBED_LEN_MAX = 3 };