diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-12 13:17:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-12 13:17:29 +0000 |
commit | 1661faf2f903c347941697d7df2e19cd56bf9ca5 (patch) | |
tree | 81711099d206cb1f05728e1f1243ef626b2f0765 /marshal.c | |
parent | 0a27ea548add7cf4083808d52b3569c77649c968 (diff) | |
download | ruby-1661faf2f903c347941697d7df2e19cd56bf9ca5.tar.gz ruby-1661faf2f903c347941697d7df2e19cd56bf9ca5.tar.xz ruby-1661faf2f903c347941697d7df2e19cd56bf9ca5.zip |
* configure.in (sizeof ptrdiff_t): check for size of ptrdiff_t.
* include/ruby/ruby.h (PRI?PTRDIFF, PRI?SIZE): printf conversion
specifiers for ptrdiff_t and size_t/ssize_t.
* insns.def (leave), marshal.c (long_toobig), transcode.c
(str_transcode), vm_dump.c (control_frame_dump, stack_dump_each),
(debug_print_register, debug_print_pre): t and z length modifiers
are C99.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |