From b188d19ee080e954b9a86c746d0c0ee4068266c1 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Nov 2010 22:28:17 +0000 Subject: [PATCH] * util.c (ruby_strtod): suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index db6f83f610..0b69b6cfb7 100644 --- a/util.c +++ b/util.c @@ -2175,11 +2175,12 @@ break2: break; } } while ('0' <= c && c <= '9'); + nd0 += nd * dsign; } else { if (dsign) goto ret0; } - dval(rv) = ldexp(adj, nd * dsign + nd0); + dval(rv) = ldexp(adj, nd0); goto ret; } nz0 = 1;