summaryrefslogtreecommitdiff
path: root/ext/dl/cfunc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-15 13:24:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-15 13:24:39 +0000
commitcba32dcaa6cd7369d0c0d130a15522048440c658 (patch)
tree36b629872c3c84de0c38a385f8249dd8be5dd828 /ext/dl/cfunc.c
parent746a7ec4f676b84febc1c2199bbfba20b3c9050a (diff)
* ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222]
* ext/digest/digest.c (rb_digest_instance_update, rb_digest_instance_finish, rb_digest_instance_reset, rb_digest_instance_block_length): %s in rb_raise() expects char*. [ruby-dev:31222] * ext/openssl/ossl.h: include ossl_pkcs5.h. [ruby-dev:31231] * ext/openssl/ossl_pkcs5.h: new file for PKCS5. [ruby-dev:31231] * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise() instead of rb_raise(). [ruby-dev:31222] * ext/sdbm/_sdbm.c: DOSISH platforms need io.h. [ruby-dev:31232] * ext/syck/syck.h: include stdlib.h for malloc() and free(). [ruby-dev:31232] * ext/syck/syck.h (syck_parser_set_input_type): prototype added. [ruby-dev:31231] * win32/win32.c: include mbstring.h for _mbspbrk(). [ruby-dev:31232] * include/ruby/win32.h (rb_w32_getcwd): prototype added. [ruby-dev:31232] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/cfunc.c')
-rw-r--r--ext/dl/cfunc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c
index 253c78f2b15..22e8600002d 100644
--- a/ext/dl/cfunc.c
+++ b/ext/dl/cfunc.c
@@ -460,7 +460,13 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
}
}
else{
- rb_raise(rb_eDLError, "unsupported call type: %x", cfunc->calltype);
+ rb_raise(rb_eDLError,
+#ifndef LONG_LONG_VALUE
+ "unsupported call type: %lx",
+#else
+ "unsupported call type: %llx",
+#endif
+ cfunc->calltype);
}
rb_dl_set_last_error(self, INT2NUM(errno));