1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (rb_str_cmp_m): should use LONG2NUM().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-02-21 09:32:18 +00:00
parent 5527d3ae59
commit ca014ae071
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,10 @@ Fri Feb 21 17:19:27 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* eval.c (rb_f_require): do not need to abort if a DLEXT file * eval.c (rb_f_require): do not need to abort if a DLEXT file
is not found. is not found.
Fri Feb 21 13:39:25 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_cmp_m): should use LONG2NUM().
Fri Feb 21 12:45:50 2003 Yukihiro Matsumoto <matz@ruby-lang.org> Fri Feb 21 12:45:50 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_cmp_m): two small bugs fixed. * string.c (rb_str_cmp_m): two small bugs fixed.

View file

@ -826,7 +826,7 @@ rb_str_cmp_m(str1, str2)
else { else {
result = rb_str_cmp(str1, str2); result = rb_str_cmp(str1, str2);
} }
return LONG2FIX(result); return LONG2NUM(result);
} }
static VALUE static VALUE