aboutsummaryrefslogtreecommitdiffstats
path: root/src/zmodmul.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zmodmul.c')
-rw-r--r--src/zmodmul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmodmul.c b/src/zmodmul.c
index 6b04909..bb0aa03 100644
--- a/src/zmodmul.c
+++ b/src/zmodmul.c
@@ -6,7 +6,7 @@ void
zmodmul(z_t a, z_t b, z_t c, z_t d)
{
/* TODO Montgomery modular multiplication */
- if (a == d) {
+ if (EXPECT(a == d, 0)) {
zset(libzahl_tmp_modmul, d);
zmul(a, b, c);
zmod(a, a, libzahl_tmp_modmul);