* util.c (BSD__hdtoa): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93164bd9d7
commit
7271a56417
2
util.c
2
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user