From ca014ae071bbd6ce820b8907e5191d5a876500a7 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 21 Feb 2003 09:32:18 +0000 Subject: * 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 --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index acdfe40434..f567f75bfe 100644 --- a/string.c +++ b/string.c @@ -826,7 +826,7 @@ rb_str_cmp_m(str1, str2) else { result = rb_str_cmp(str1, str2); } - return LONG2FIX(result); + return LONG2NUM(result); } static VALUE -- cgit v1.2.3