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:
parent
36353b2728
commit
75a0447c15
1 changed files with 1 additions and 1 deletions
|
|
@ -2651,7 +2651,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
|
||||||
/*------------------------------------------
|
/*------------------------------------------
|
||||||
hash object ==> named dispatch parameters
|
hash object ==> named dispatch parameters
|
||||||
--------------------------------------------*/
|
--------------------------------------------*/
|
||||||
cNamedArgs = SIZET2NUM(RHASH_SIZE(param));
|
cNamedArgs = rb_long2int((long)RHASH_SIZE(param));
|
||||||
op.dp.cArgs = cNamedArgs + argc - 2;
|
op.dp.cArgs = cNamedArgs + argc - 2;
|
||||||
op.pNamedArgs = ALLOCA_N(OLECHAR*, cNamedArgs + 1);
|
op.pNamedArgs = ALLOCA_N(OLECHAR*, cNamedArgs + 1);
|
||||||
op.dp.rgvarg = ALLOCA_N(VARIANTARG, op.dp.cArgs);
|
op.dp.rgvarg = ALLOCA_N(VARIANTARG, op.dp.cArgs);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue