summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-30 06:39:53 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-30 06:39:53 (GMT)
commitbd7daa5ac5923692eb145d8f989efde689101d00 (patch)
tree77cb1ad5347b4bd5d7eafc94f312361ddb7dc0cf /util.c
parentf46689f68ff14275c3758bea5c726877cb8000fd (diff)
* util.c (ruby_strtod): fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/util.c b/util.c
index 53a4e9f..1960242 100644
--- a/util.c
+++ b/util.c
@@ -2144,20 +2144,20 @@ break2:
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 {