summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-05 12:09:31 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-05 12:09:31 +0000
commit08cb01f07320aa58c5f03fb5a9d3ef83e462f4b4 (patch)
treee23b35fb8563c8a35ed1faa4fd06862b9e974b5b /numeric.c
parent0ff14af9faf3fc06b1608437d83939f910dbac21 (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@9893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/numeric.c b/numeric.c
index 10310338cf..f94be7f8ed 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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);
}