Skip to content

Commit

Permalink
Suppress C4267 "possible loss of data" warnings
Browse files Browse the repository at this point in the history
Just cast down explicitly.
  • Loading branch information
nobu committed Apr 17, 2020
1 parent 36353b2 commit 75a0447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/win32ole/win32ole.c
Expand Up @@ -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);
Expand Down

0 comments on commit 75a0447

Please sign in to comment.