зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
78271e8c72
Коммит
724b1c60dc
|
@ -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.
|
||||
|
|
2
string.c
2
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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче