summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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 90268975ff2..f5246b02744 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