ruby-changes:15280
From: nobu <ko1@a...>
Date: Fri, 2 Apr 2010 07:00:13 +0900 (JST)
Subject: [ruby-changes:15280] Ruby:r27165 (trunk): * util.c (BSD__hdtoa): suppress a warning.
nobu 2010-04-02 06:59:57 +0900 (Fri, 02 Apr 2010) New Revision: 27165 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27165 Log: * util.c (BSD__hdtoa): suppress a warning. Modified files: trunk/util.c Index: util.c =================================================================== --- util.c (revision 27164) +++ util.c (revision 27165) @@ -3969,7 +3969,7 @@ /* 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/