* ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now

treated as ("-0.31") not as ("0.31").

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-03-14 05:35:31 +00:00
parent f5022c8e44
commit 1fbbef5d73
3 changed files with 9 additions and 6 deletions

View file

@ -3921,7 +3921,7 @@ VpCtoV(Real *a, const char *int_chr, U_LONG ni, const char *frac, U_LONG nf, con
/* get integer part */
i = 0;
sign = 1;
if(ni > 0) {
if(ni >= 0) {
if(int_chr[0] == '-') {
sign = -1;
++i;