mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
win32ole.c: fix long conversion
* ext/win32ole/win32ole.c (ole_val2variant): reuse the converted result for V_I8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
90d9255ec2
commit
a2a6c98e51
1 changed files with 1 additions and 1 deletions
|
@ -1275,7 +1275,7 @@ ole_val2variant(VALUE val, VARIANT *var)
|
||||||
V_I4(var) = (LONG)v;
|
V_I4(var) = (LONG)v;
|
||||||
#if SIZEOF_LONG > 4
|
#if SIZEOF_LONG > 4
|
||||||
if (V_I4(var) != v) {
|
if (V_I4(var) != v) {
|
||||||
V_I8(var) = NUM2LONG(val);
|
V_I8(var) = v;
|
||||||
V_VT(var) = VT_I8;
|
V_VT(var) = VT_I8;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue