summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 21:59:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 21:59:57 +0000
commit7271a56417bde7f0d4a60b31c66b339d18cd5d35 (patch)
treec8b21be0eb5cc85427a72bb4f880d9160a72b964 /util.c
parent93164bd9d738055c00388bac76d565d844da8d4a (diff)
downloadbundler-7271a56417bde7f0d4a60b31c66b339d18cd5d35.tar.gz
* util.c (BSD__hdtoa): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 838f2e5c8f..2f67107691 100644
--- a/util.c
+++ b/util.c
@@ -3969,7 +3969,7 @@ BSD__hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign,
/* Round to the desired number of digits. */
if (SIGFIGS > ndigits && ndigits > 0) {
- float redux = 1.0;
+ float redux = 1.0f;
int offset = 4 * ndigits + DBL_MAX_EXP - 4 - DBL_MANT_DIG;
dexp_set(u, offset);
u.d += redux;