1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2008-01-28 15:12:43 +00:00
parent f7ed47355e
commit a9e2312806
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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) ? '+' : '-';