summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}