diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-27 20:51:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-27 20:51:46 +0000 |
commit | 1bf4a34eec846ab9aec7dafc92132044d9ee1620 (patch) | |
tree | 936a9b2a241898b0816ea4e492d22364bc177e9d /ext/win32ole | |
parent | c8e19d297af24703c5d23efd14d0ec4b4b4e95ea (diff) | |
download | ruby-1bf4a34eec846ab9aec7dafc92132044d9ee1620.tar.gz |
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
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 0b01af1077..eb00c938bc 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)) { |