diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-05 12:09:31 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-05 12:09:31 +0000 |
| commit | bc93d395d59ce67c783793bd0e4eeaace7d6f2d5 (patch) | |
| tree | e23b35fb8563c8a35ed1faa4fd06862b9e974b5b | |
| parent | 3badcd6993a66173e21f99124212b0a6c0606fde (diff) | |
| download | ruby-bc93d395d59ce67c783793bd0e4eeaace7d6f2d5.tar.gz ruby-bc93d395d59ce67c783793bd0e4eeaace7d6f2d5.tar.xz ruby-bc93d395d59ce67c783793bd0e4eeaace7d6f2d5.zip | |
* numeric.c (fix_to_s): removed workaround for radix 2. Historically,
rb_fix2str can only handle radix 8, 10, 16. (Rev1.37) But for now,
it can handle radix 2..36. [ruby-Bugs#3438]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | numeric.c | 4 |
2 files changed, 6 insertions, 4 deletions
@@ -1,3 +1,9 @@ +Sun Feb 5 21:01:49 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> + + * numeric.c (fix_to_s): removed workaround for radix 2. Historically, + rb_fix2str can only handle radix 8, 10, 16. (Rev1.37) But for now, + it can handle radix 2..36. [ruby-Bugs#3438] + Sun Feb 5 18:49:00 2006 Minero Aoki <aamine@loveruby.net> * lib/net/http.rb (add_field, get_fields): keep 1.8.2 @@ -1882,10 +1882,6 @@ fix_to_s(int argc, VALUE *argv, VALUE x) if (argc == 0) base = 10; else base = NUM2INT(b); - if (base == 2) { - /* rb_fix2str() does not handle binary */ - return rb_big2str(rb_int2big(FIX2LONG(x)), 2); - } return rb_fix2str(x, base); } |
