summaryrefslogtreecommitdiff
path: root/ext/dl/cfunc.c
diff options
context:
space:
mode:
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));