aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-05-16 16:27:33 +0000
committerlloyd <[email protected]>2011-05-16 16:27:33 +0000
commit9e8743ee1d84eb196628ad687b9a87da5d2663a2 (patch)
treef221820c9d7887f6410bbee77be081f101a58a89 /src
parente1af6da15409e775d7d1eb6c12e6c2ee031df3b6 (diff)
Always writing to/reading from the carry word makes valgrind unhappy.
Diffstat (limited to 'src')
-rw-r--r--src/math/mp/mp_asm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math/mp/mp_asm.cpp b/src/math/mp/mp_asm.cpp
index d164c1d33..3ba52c4b1 100644
--- a/src/math/mp/mp_asm.cpp
+++ b/src/math/mp/mp_asm.cpp
@@ -67,7 +67,8 @@ word bigint_add3_nc(word z[], const word x[], size_t x_size,
*/
void bigint_add2(word x[], size_t x_size, const word y[], size_t y_size)
{
- x[x_size] += bigint_add2_nc(x, x_size, y, y_size);
+ if(bigint_add2_nc(x, x_size, y, y_size))
+ x[x_size] += 1;
}
/*