diff --git a/ttmath/ttmathuint_x86.h b/ttmath/ttmathuint_x86.h index 69da94f..d5bb4a3 100644 --- a/ttmath/ttmathuint_x86.h +++ b/ttmath/ttmathuint_x86.h @@ -75,7 +75,7 @@ namespace ttmath function returns carry (1) (if it has been) */ template - uint UInt::Add(const UInt & ss2, uint c=0) + uint UInt::Add(const UInt & ss2, uint c) { register uint b = value_size; register uint * p1 = table; @@ -189,7 +189,7 @@ namespace ttmath of course if there was a carry from table[2] it would be returned */ template - uint UInt::AddInt(uint value, uint index = 0) + uint UInt::AddInt(uint value, uint index) { register uint b = value_size; register uint * p1 = table; @@ -410,7 +410,7 @@ namespace ttmath function returns carry (1) (if it has been) */ template - uint UInt::Sub(const UInt & ss2, uint c=0) + uint UInt::Sub(const UInt & ss2, uint c) { register uint b = value_size; register uint * p1 = table; @@ -518,7 +518,7 @@ namespace ttmath of course if there was a carry from table[3] it would be returned */ template - uint UInt::SubInt(uint value, uint index = 0) + uint UInt::SubInt(uint value, uint index) { register uint b = value_size; register uint * p1 = table; diff --git a/ttmath/ttmathuint_x86_64.h b/ttmath/ttmathuint_x86_64.h index a211596..4ddf437 100644 --- a/ttmath/ttmathuint_x86_64.h +++ b/ttmath/ttmathuint_x86_64.h @@ -77,7 +77,7 @@ namespace ttmath { uint b = value_size; uint * p1 = table; - const uint * p2 = const_cast(ss2.table); + const uint * p2 = ss2.table; uint dummy, dummy2; // we don't have to use TTMATH_REFERENCE_ASSERT here