summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--string.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2854196657..383d20543f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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>
* string.c (rb_str_cmp_m): two small bugs fixed.
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