diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | string.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat May 28 02:22:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * string.c (rb_str_bytesize): rb_str_bytesize() should use LONG2NUM(). + Patch by Nikolai Weibull. [Bug #4789] [ruby-core:36511] + Sat May 28 02:06:26 2011 KOSAKI Motohiro <kosaki@KOSAKI-Motohiro-no-MacBook-Pro.local> * io.c (fill_cbuf): Fix test-all crash. @@ -1150,7 +1150,7 @@ rb_str_length(VALUE str) static VALUE rb_str_bytesize(VALUE str) { - return INT2NUM(RSTRING_LEN(str)); + return LONG2NUM(RSTRING_LEN(str)); } /* |