ruby-changes:31701
From: nobu <ko1@a...>
Date: Fri, 22 Nov 2013 13:11:08 +0900 (JST)
Subject: [ruby-changes:31701] nobu:r43780 (trunk): util.c: more precision
nobu 2013-11-22 13:10:46 +0900 (Fri, 22 Nov 2013) New Revision: 43780 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43780 Log: util.c: more precision * util.c (ruby_strtod): BigMath requires more precision. Modified files: trunk/util.c Index: util.c =================================================================== --- util.c (revision 43779) +++ util.c (revision 43780) @@ -2107,7 +2107,7 @@ break2: https://github.com/ruby/ruby/blob/trunk/util.c#L2107 for (; c >= '0' && c <= '9'; c = *++s) { have_dig: nz++; - if (nf > DBL_DIG * 2) continue; + if (nf > DBL_DIG * 4) continue; if (c -= '0') { nf += nz; for (i = 1; i < nz; i++) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/