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

Suppress C4267 "possible loss of data" warnings

Just cast down explicitly.
This commit is contained in:
Nobuyoshi Nakada 2020-04-17 08:14:38 +09:00
parent 36353b2728
commit 75a0447c15
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -2651,7 +2651,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
/*------------------------------------------
hash object ==> named dispatch parameters
--------------------------------------------*/
cNamedArgs = SIZET2NUM(RHASH_SIZE(param));
cNamedArgs = rb_long2int((long)RHASH_SIZE(param));
op.dp.cArgs = cNamedArgs + argc - 2;
op.pNamedArgs = ALLOCA_N(OLECHAR*, cNamedArgs + 1);
op.dp.rgvarg = ALLOCA_N(VARIANTARG, op.dp.cArgs);