From 7271a56417bde7f0d4a60b31c66b339d18cd5d35 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 1 Apr 2010 21:59:57 +0000 Subject: * util.c (BSD__hdtoa): suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') 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; -- cgit v1.2.3