From a9e23128061268b7823eeb701be9bea959a3d527 Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 28 Jan 2008 15:12:43 +0000 Subject: * bignum.c (rb_big2str0): should be US-ASCII. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bignum.c') 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) ? '+' : '-'; -- cgit v1.2.3