summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--bignum.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e8a9c84ed0..785f92f5a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Apr 21 18:36:28 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * bignum.c (rb_cstr_to_inum): unnecessarily long buffer was used
+ for radix 9. [ruby-dev:20057]
+
Mon Apr 21 17:44:34 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* parse.y (block_append, value_expr0, assign_in_cond,
diff --git a/bignum.c b/bignum.c
index 5917f04bc9..01c882476e 100644
--- a/bignum.c
+++ b/bignum.c
@@ -389,7 +389,7 @@ rb_cstr_to_inum(str, base, badcheck)
if (str[0] == '0' && (str[1] == 'd'||str[1] == 'D')) {
str += 2;
}
- case 11: case 12: case 13: case 14: case 15:
+ case 9: case 11: case 12: case 13: case 14: case 15:
len = 4;
break;
case 16: