mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
* 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:
parent
f5022c8e44
commit
1fbbef5d73
3 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue