summaryrefslogtreecommitdiffstats
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
commit44c14a655a513ed62d5803d47c6a0ec51cb586b7 (patch)
tree2e31f21bce50eeaa29cba85bb09c9ae63309021d
parentccfae5d5ecf1158414a90fc66daf2ba138d3897c (diff)
downloadruby-44c14a655a513ed62d5803d47c6a0ec51cb586b7.tar.gz
ruby-44c14a655a513ed62d5803d47c6a0ec51cb586b7.tar.xz
ruby-44c14a655a513ed62d5803d47c6a0ec51cb586b7.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/branches/ruby_1_8@9893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--numeric.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index d92431ebb..207982453 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Feb 5 21:05:34 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:55:08 2006 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb: imported from trunk, rev 1.129
diff --git a/numeric.c b/numeric.c
index 29fb9f83f..4c8bacdaf 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1951,10 +1951,6 @@ fix_to_s(argc, argv, 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);
}