diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-01 03:23:50 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-01 03:23:50 +0000 |
| commit | a634334e595aa4c6cad25d84a02d01f0951acadd (patch) | |
| tree | 87886f6e195816c5edddc18c0c4440fb7bbcf11a /transcode.c | |
| parent | ed1da4c133fc1e2e837a823f264744a76b4fc2e4 (diff) | |
| download | ruby-a634334e595aa4c6cad25d84a02d01f0951acadd.tar.gz ruby-a634334e595aa4c6cad25d84a02d01f0951acadd.tar.xz ruby-a634334e595aa4c6cad25d84a02d01f0951acadd.zip | |
* insns.def (DEFINE_INSN): subtract of pointers is ptrdiff_t.
this is not int on 64bit system.
* vm_dump.c (control_frame_dump): ditto.
* vm_dump.c (stack_dump_each): ditto.
* vm_dump.c (debug_print_register): ditto.
* vm_dump.c (debug_print_pre): ditto.
* transcode.c (str_transcode): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
| -rw-r--r-- | transcode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/transcode.c b/transcode.c index 729baffb9..f58c68335 100644 --- a/transcode.c +++ b/transcode.c @@ -326,7 +326,7 @@ str_transcode(int argc, VALUE *argv, VALUE *self) my_transcoding.ruby_string_dest = dest; (*my_transcoder->preprocessor)(&fromp, &bp, (sp+slen), (bp+blen), &my_transcoding); if (fromp != sp+slen) { - rb_raise(rb_eArgError, "not fully converted, %d bytes left", sp+slen-fromp); + rb_raise(rb_eArgError, "not fully converted, %td bytes left", sp+slen-fromp); } buf = (unsigned char *)RSTRING_PTR(dest); *bp = '\0'; @@ -343,7 +343,7 @@ str_transcode(int argc, VALUE *argv, VALUE *self) transcode_loop(&fromp, &bp, (sp+slen), (bp+blen), my_transcoder, &my_transcoding, options); if (fromp != sp+slen) { - rb_raise(rb_eArgError, "not fully converted, %d bytes left", sp+slen-fromp); + rb_raise(rb_eArgError, "not fully converted, %td bytes left", sp+slen-fromp); } buf = (unsigned char *)RSTRING_PTR(dest); *bp = '\0'; @@ -358,7 +358,7 @@ str_transcode(int argc, VALUE *argv, VALUE *self) my_transcoding.ruby_string_dest = dest; (*my_transcoder->postprocessor)(&fromp, &bp, (sp+slen), (bp+blen), &my_transcoding); if (fromp != sp+slen) { - rb_raise(rb_eArgError, "not fully converted, %d bytes left", sp+slen-fromp); + rb_raise(rb_eArgError, "not fully converted, %td bytes left", sp+slen-fromp); } buf = (unsigned char *)RSTRING_PTR(dest); *bp = '\0'; |
