summaryrefslogtreecommitdiffstats
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-16 10:07:26 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-16 10:07:26 +0000
commit62cba2e11cfc2cdeb5ea6766f1cd69c38ea02164 (patch)
tree339aca8b2346f1ed23db1331fca5a5376e70650c /ext/bigdecimal
parentc90eef28b17731e23546093fd58b4765185d4481 (diff)
downloadruby-62cba2e11cfc2cdeb5ea6766f1cd69c38ea02164.tar.gz
ruby-62cba2e11cfc2cdeb5ea6766f1cd69c38ea02164.tar.xz
ruby-62cba2e11cfc2cdeb5ea6766f1cd69c38ea02164.zip
* merge -c 12065
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-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;