From a2a6c98e51ee9e5d3525aef210ad0162c5008312 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 13 Aug 2016 13:01:13 +0000 Subject: 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 --- ext/win32ole/win32ole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/win32ole') 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 -- cgit v1.2.1