diff options
| author | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-11 14:30:05 +0000 |
|---|---|---|
| committer | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-11 14:30:05 +0000 |
| commit | 51d0279fee61479df229025218af12677a189ee9 (patch) | |
| tree | 18cec79685b31f986ead299f1dc359db61f2f70e | |
| parent | d0e015ef69f3d3e9d584f1f39a11359698fd9df0 (diff) | |
| download | ruby-51d0279fee61479df229025218af12677a189ee9.tar.gz ruby-51d0279fee61479df229025218af12677a189ee9.tar.xz ruby-51d0279fee61479df229025218af12677a189ee9.zip | |
Fix for 'incomplete bug fix' for 1.41.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ext/bigdecimal/bigdecimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 2af1da06e..402e13cc5 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -2311,7 +2311,6 @@ VpSubAbs(Real *a, Real *b, Real *c) /* each of the last few digits of the b because the a has no */ /* corresponding digits to be subtracted. */ if(b_pos + word_shift > a_pos) { - borrow = 1; while(b_pos + word_shift > a_pos) { --c_pos; if(b_pos > 0) { @@ -2320,6 +2319,7 @@ VpSubAbs(Real *a, Real *b, Real *c) --word_shift; c->frac[c_pos] = BASE - borrow; } + borrow = 1; } } /* Just assign the last few digits of a to c because b has no */ |
