aboutsummaryrefslogtreecommitdiffstats
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index d2ffbd4aac..0df199adb6 100644
--- a/marshal.c
+++ b/marshal.c
@@ -419,7 +419,7 @@ w_symbol(ID id, struct dump_arg *arg)
else {
sym = rb_id2str(id);
if (!sym) {
- rb_raise(rb_eTypeError, "can't dump anonymous ID %ld", id);
+ rb_raise(rb_eTypeError, "can't dump anonymous ID %"PRIdVALUE, id);
}
encidx = rb_enc_get_index(sym);
if (encidx == rb_usascii_encindex() ||