aboutsummaryrefslogtreecommitdiffstats
path: root/src/zptest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zptest.c')
-rw-r--r--src/zptest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zptest.c b/src/zptest.c
index 406cedc..1a44069 100644
--- a/src/zptest.c
+++ b/src/zptest.c
@@ -28,7 +28,7 @@ zptest(z_t witness, z_t n, int t)
}
if (unlikely(zeven(n))) {
if (witness)
- SET(witness, n);
+ zsetu(witness, 2);
return NONPRIME;
}