[前][次][番号順一覧][スレッド一覧]

ruby-changes:25719

From: shyouhei <ko1@a...>
Date: Wed, 21 Nov 2012 14:09:32 +0900 (JST)
Subject: [ruby-changes:25719] shyouhei:r37776 (trunk): revert r37710, requested by Tadayoshi Funaba

shyouhei	2012-11-21 14:09:19 +0900 (Wed, 21 Nov 2012)

  New Revision: 37776

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37776

  Log:
    revert r37710, requested by Tadayoshi Funaba [ruby-dev:46575]

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
    trunk/test/ruby/test_string.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37775)
+++ ChangeLog	(revision 37776)
@@ -308,11 +308,6 @@
 	* common.mk (vm.$(OBJEXT)): add dependency to probes_helper.h.
 	* vm.c, vm_insnhelper.c: include probes_helper.h.
 
-Sun Nov 18 20:46:08 2012  Tadayoshi Funaba  <tadf@d...>
-
-	* bignum.c (rb_cstr_to_inum): should accept underscores of
-	  sequence of two or more when unchecked mode.
-
 Sun Nov 18 16:33:00 2012  Naohisa Goto  <ngotogenome@g...>
 
 	* configure.in, Makefile.in, common.mk: support DTrace on Solaris 10,
Index: bignum.c
===================================================================
--- bignum.c	(revision 37775)
+++ bignum.c	(revision 37776)
@@ -733,8 +733,7 @@
 		if (badcheck) goto bad;
 		break;
 	    }
-	    if (badcheck)
-		nondigit = (char) c;
+	    nondigit = (char) c;
 	    continue;
 	}
 	else if ((c = conv_digit(c)) < 0) {
Index: test/ruby/test_string.rb
===================================================================
--- test/ruby/test_string.rb	(revision 37775)
+++ test/ruby/test_string.rb	(revision 37776)
@@ -1513,7 +1513,7 @@
     assert_equal(12, "1_2".to_i(10))
     assert_equal(0x40000000, "1073741824".to_i(10))
     assert_equal(0x4000000000000000, "4611686018427387904".to_i(10))
-    assert_equal(12, "1__2".to_i(10))
+    assert_equal(1, "1__2".to_i(10))
     assert_equal(1, "1_z".to_i(10))
 
     bug6192 = '[ruby-core:43566]'

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]