ruby-changes:3853
From: ko1@a...
Date: Wed, 30 Jan 2008 20:20:25 +0900 (JST)
Subject: [ruby-changes:3853] tadf - Ruby:r15342 (trunk): adjustment
tadf 2008-01-30 20:20:03 +0900 (Wed, 30 Jan 2008)
New Revision: 15342
Modified files:
trunk/bignum.c
Log:
adjustment
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bignum.c?r1=15342&r2=15341&diff_format=u
Index: bignum.c
===================================================================
--- bignum.c (revision 15341)
+++ bignum.c (revision 15342)
@@ -470,16 +470,15 @@
break;
}
if (*str == '0') { /* squeeze preceding 0s */
- int nn = 0;
- while ((c = *++str) == '0' || c == '_') {
- if (c == '_') {
- nn++;
- if (nn >= 2)
- break;
- } else
- nn = 0;
- }
- if (!(c = *str) || ISSPACE(c)) --str;
+ int us = 0;
+ while ((c = *++str) == '0' || c == '_') {
+ if (c == '_') {
+ if (++us >= 2)
+ break;
+ } else
+ us = 0;
+ }
+ if (!(c = *str) || ISSPACE(c)) --str;
}
c = *str;
c = conv_digit(c);
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/