ruby-changes:17636
From: nobu <ko1@a...>
Date: Sat, 30 Oct 2010 15:40:55 +0900 (JST)
Subject: [ruby-changes:17636] Ruby:r29644 (trunk): * util.c (ruby_strtod): fix indent.
nobu 2010-10-30 15:39:53 +0900 (Sat, 30 Oct 2010) New Revision: 29644 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29644 Log: * util.c (ruby_strtod): fix indent. Modified files: trunk/util.c Index: util.c =================================================================== --- util.c (revision 29643) +++ util.c (revision 29644) @@ -2144,20 +2144,20 @@ if (abs(dsign) == 1) s++; else dsign = 1; - nd = 0; - c = *s; - if (c < '0' || '9' < c) goto ret0; - do { - nd *= 10; - nd += c; - nd -= '0'; - c = *++s; - /* Float("0x0."+("0"*267)+"1fp2095") */ - if (abs(nd) > 2095) { - while ('0' <= c && c <= '9') c = *++s; - break; - } - } while ('0' <= c && c <= '9'); + nd = 0; + c = *s; + if (c < '0' || '9' < c) goto ret0; + do { + nd *= 10; + nd += c; + nd -= '0'; + c = *++s; + /* Float("0x0."+("0"*267)+"1fp2095") */ + if (abs(nd) > 2095) { + while ('0' <= c && c <= '9') c = *++s; + break; + } + } while ('0' <= c && c <= '9'); dval(rv) = ldexp(adj, nd * dsign); } else { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/