From cbcc760f836e6ee6d27362c35d2018997aa01b62 Mon Sep 17 00:00:00 2001 From: nicoo Date: Sat, 4 Jul 2020 23:51:57 +0200 Subject: [PATCH] factor::miller_rabin: Squash another bug! >:3 Detected by the testsuite improvement just prior. --- src/uu/factor/src/miller_rabin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/factor/src/miller_rabin.rs b/src/uu/factor/src/miller_rabin.rs index c98d343f4..04649fa72 100644 --- a/src/uu/factor/src/miller_rabin.rs +++ b/src/uu/factor/src/miller_rabin.rs @@ -57,7 +57,7 @@ pub(crate) fn test(m: A) -> Result { for _a in A::BASIS.iter() { let _a = _a % n; if _a == 0 { - break; + continue; } let a = m.from_u64(_a);