* util.c (ruby_strtod): fix indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-10-30 06:39:53 +00:00
parent f46689f68f
commit bd7daa5ac5

28
util.c
View File

@ -2144,20 +2144,20 @@ break2:
if (abs(dsign) == 1) s++; if (abs(dsign) == 1) s++;
else dsign = 1; else dsign = 1;
nd = 0; nd = 0;
c = *s; c = *s;
if (c < '0' || '9' < c) goto ret0; if (c < '0' || '9' < c) goto ret0;
do { do {
nd *= 10; nd *= 10;
nd += c; nd += c;
nd -= '0'; nd -= '0';
c = *++s; c = *++s;
/* Float("0x0."+("0"*267)+"1fp2095") */ /* Float("0x0."+("0"*267)+"1fp2095") */
if (abs(nd) > 2095) { if (abs(nd) > 2095) {
while ('0' <= c && c <= '9') c = *++s; while ('0' <= c && c <= '9') c = *++s;
break; break;
} }
} while ('0' <= c && c <= '9'); } while ('0' <= c && c <= '9');
dval(rv) = ldexp(adj, nd * dsign); dval(rv) = ldexp(adj, nd * dsign);
} }
else { else {