summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--bignum.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 26b516cdd4..88ad50f408 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jan 29 00:12:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bignum.c (rb_big2str0): should be US-ASCII.
+
Tue Jan 29 00:10:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-mode-set-encoding): updates magic comment.
diff --git a/bignum.c b/bignum.c
index 669e422331..4a4bdbd9d4 100644
--- a/bignum.c
+++ b/bignum.c
@@ -912,7 +912,7 @@ rb_big2str0(VALUE x, int base, int trim)
n2 = big2str_find_n1(x, base);
n1 = (n2 + 1) / 2;
- ss = rb_str_new(0, n2 + 1); /* plus one for sign */
+ ss = rb_usascii_str_new(0, n2 + 1); /* plus one for sign */
ptr = RSTRING_PTR(ss);
ptr[0] = RBIGNUM_SIGN(x) ? '+' : '-';