From a7a7eb7808c0feebc622e887cd8f95686c65e9b5 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 5 May 2009 07:47:10 +0000 Subject: [PATCH] fixed: deleted default values for variables in some methods (file ttmathuint_x86.h) (they should only be put in declaration) git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@128 e52654a7-88a9-db11-a3e9-0013d4bc506e --- ttmath/ttmathuint_x86.h | 8 ++++---- ttmath/ttmathuint_x86_64.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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