summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2014-10-30 15:22:44 -0600
committerMike Buland <mike@xagasoft.com>2014-10-30 15:22:44 -0600
commitc267a6706b1cf5b2eaae042eb41e94ece67b5467 (patch)
tree322615c7aff8b5757045099bab6a31cbb266955b
parentc2e3917d6b1feab90c3632fb76acacd672ff9e06 (diff)
downloadclic-c267a6706b1cf5b2eaae042eb41e94ece67b5467.tar.gz
clic-c267a6706b1cf5b2eaae042eb41e94ece67b5467.tar.bz2
clic-c267a6706b1cf5b2eaae042eb41e94ece67b5467.tar.xz
clic-c267a6706b1cf5b2eaae042eb41e94ece67b5467.zip
Used the new cuter sign logic in multiply.
-rw-r--r--src/number.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/number.cpp b/src/number.cpp
index 93ddc0a..c680a50 100644
--- a/src/number.cpp
+++ b/src/number.cpp
@@ -103,10 +103,7 @@ Number Number::operator*( const Number &rhs ) const
103 iCarry += iPos/iRadix; 103 iCarry += iPos/iRadix;
104 } 104 }
105 105
106 if( bPositive == rhs.bPositive ) 106 ret.bPositive = !(!bPositive ^ !rhs.bPositive);
107 ret.bPositive = true;
108 else
109 ret.bPositive = false;
110 107
111 return ret; 108 return ret;
112} 109}