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 | a2a6c98e51ee9e5d3525aef210ad0162c5008312 (patch) | |
tree | afc28cd0975e207c25f28846c06c540eb24ab153 /ext/win32ole | |
parent | 90d9255ec24b84a1a9f975f2628530f0ed80636d (diff) |
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
Diffstat (limited to 'ext/win32ole')
-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 |