summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/marshal.c b/marshal.c
index f2d01809ca..ec0041dd01 100644
--- a/marshal.c
+++ b/marshal.c
@@ -941,8 +941,8 @@ r_byte(struct load_arg *arg)
static void
long_toobig(int size)
{
- rb_raise(rb_eTypeError, "long too big for this architecture (size %zd, given %d)",
- sizeof(long), size);
+ rb_raise(rb_eTypeError, "long too big for this architecture (size "
+ STRINGIZE(SIZEOF_LONG)", given %d)", size);
}
#undef SIGN_EXTEND_CHAR