diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-13 13:01:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-13 13:01:13 +0000 |
commit | 107f69cc28e97769550f921cef283056d80cd601 (patch) | |
tree | afc28cd0975e207c25f28846c06c540eb24ab153 | |
parent | 2e0d97cb7a33844347de6dc494c715e585d17701 (diff) | |
download | ruby-107f69cc28e97769550f921cef283056d80cd601.tar.gz |
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
-rw-r--r-- | ext/win32ole/win32ole.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index 90268975ff..f5246b0274 100644 --- a/ext/win32ole/win32ole.c +++ b/ext/win32ole/win32ole.c @@ -1275,7 +1275,7 @@ ole_val2variant(VALUE val, VARIANT *var) V_I4(var) = (LONG)v; #if SIZEOF_LONG > 4 if (V_I4(var) != v) { - V_I8(var) = NUM2LONG(val); + V_I8(var) = v; V_VT(var) = VT_I8; } #endif |