summaryrefslogtreecommitdiffstats
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorshigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-11 14:30:05 +0000
committershigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-11 14:30:05 +0000
commitf361117b5a251a767243d3936eb3091106053548 (patch)
tree85a420e86ba9554af52af41f3e989dfdec565ca9 /ext/bigdecimal
parent25e07c0c931e7c00f5b0cbd566fe9c31b3d971e4 (diff)
downloadruby-f361117b5a251a767243d3936eb3091106053548.tar.gz
ruby-f361117b5a251a767243d3936eb3091106053548.tar.xz
ruby-f361117b5a251a767243d3936eb3091106053548.zip
Fix for 'incomplete bug fix' for 1.41.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6291 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 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 */