summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
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