summaryrefslogtreecommitdiff
path: root/ext/win32ole
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-13 13:01:13 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-13 13:01:13 (GMT)
commita2a6c98e51ee9e5d3525aef210ad0162c5008312 (patch)
treeafc28cd0975e207c25f28846c06c540eb24ab153 /ext/win32ole
parent90d9255ec24b84a1a9f975f2628530f0ed80636d (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c
index 9026897..f5246b0 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