summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-14 05:39:00 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-14 05:39:00 +0000
commita76ce2d12bd23901c9d22d0971eaa54c750e8a12 (patch)
tree075b50cd5613c791f30c98b058e48d32f75e09e4 /ext
parent0541d6419913af0e0d89ecac88a36e917f581e6b (diff)
downloadruby-a76ce2d12bd23901c9d22d0971eaa54c750e8a12.tar.gz
ruby-a76ce2d12bd23901c9d22d0971eaa54c750e8a12.tar.xz
ruby-a76ce2d12bd23901c9d22d0971eaa54c750e8a12.zip
* ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now
treated as ("-0.31") not as ("0.31"). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/bigdecimal/bigdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index efbf29f92..a4b769e8c 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -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;