summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-27 20:51:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-27 20:51:46 +0000
commit1bf4a34eec846ab9aec7dafc92132044d9ee1620 (patch)
tree936a9b2a241898b0816ea4e492d22364bc177e9d
parentc8e19d297af24703c5d23efd14d0ec4b4b4e95ea (diff)
win32ole.c: suppress warning
* ext/win32ole/win32ole.c (ole_rec2variant): cast to suppress a format warning on x86_64-cygwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 0b01af10770..eb00c938bcf 100644
--- a/ext/win32ole/win32ole.c
+++ b/ext/win32ole/win32ole.c
@@ -1710,7 +1710,7 @@ ole_rec2variant(VALUE rec, VARIANT *var)
}
prec->pdata = ALLOC_N(char, size);
if (!prec->pdata) {
- rb_raise(rb_eRuntimeError, "failed to memory allocation of %ld bytes", size);
+ rb_raise(rb_eRuntimeError, "failed to memory allocation of %lu bytes", (unsigned long)size);
}
hr = pri->lpVtbl->RecordInit(pri, prec->pdata);
if (FAILED(hr)) {