From 724b1c60dcacd476b8a3d5ecf8170b4cd8bfb1b4 Mon Sep 17 00:00:00 2001 From: kosaki Date: Fri, 27 May 2011 17:23:30 +0000 Subject: [PATCH] * string.c (rb_str_bytesize): rb_str_bytesize() should use LONG2NUM(). Patch by Nikolai Weibull. [Bug #4789] [ruby-core:36511] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ string.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c473d7a701..3058031579 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat May 28 02:22:48 2011 KOSAKI Motohiro + + * 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 * io.c (fill_cbuf): Fix test-all crash. diff --git a/string.c b/string.c index a6532f4df3..2691d85c66 100644 --- a/string.c +++ b/string.c @@ -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)); } /*