summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-08 22:28:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-08 22:28:17 +0000
commitb188d19ee080e954b9a86c746d0c0ee4068266c1 (patch)
tree46c9ef37a15b99b7d462da3dca4a8a56fd524e8b /util.c
parentf3e35474078895e1d178e15cfbfc6743f9ffc62d (diff)
downloadruby-b188d19ee080e954b9a86c746d0c0ee4068266c1.tar.gz
* util.c (ruby_strtod): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.c b/util.c
index db6f83f610..0b69b6cfb7 100644
--- a/util.c
+++ b/util.c
@@ -2175,11 +2175,12 @@ break2:
break;
}
} while ('0' <= c && c <= '9');
+ nd0 += nd * dsign;
}
else {
if (dsign) goto ret0;
}
- dval(rv) = ldexp(adj, nd * dsign + nd0);
+ dval(rv) = ldexp(adj, nd0);
goto ret;
}
nz0 = 1;