diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-01 21:59:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-01 21:59:57 +0000 |
commit | 7271a56417bde7f0d4a60b31c66b339d18cd5d35 (patch) | |
tree | c8b21be0eb5cc85427a72bb4f880d9160a72b964 /util.c | |
parent | 93164bd9d738055c00388bac76d565d844da8d4a (diff) | |
download | bundler-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |