diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-28 15:12:43 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-28 15:12:43 +0000 |
commit | c6cd0174cd29d108debe35dd3a882212448f2993 (patch) | |
tree | 13b2266a1bddedd5bb79b07494235582269da04e /bignum.c | |
parent | 40d82c9aec42883cb194917b41e2bf56f299ac0e (diff) | |
download | ruby-c6cd0174cd29d108debe35dd3a882212448f2993.tar.gz ruby-c6cd0174cd29d108debe35dd3a882212448f2993.tar.xz ruby-c6cd0174cd29d108debe35dd3a882212448f2993.zip |
* bignum.c (rb_big2str0): should be US-ASCII.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) ? '+' : '-'; |