summaryrefslogtreecommitdiff
path: root/mpn
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2020-12-13 19:11:02 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2020-12-13 19:11:02 +0100
commit0ae32d97e977aa105d441c5b56ecf851a0facea2 (patch)
tree8a28a8cee7266ee29bdcf642d57a6fefbd5c6a74 /mpn
parent16ba0711a8b74653ca622842bea5b2d1a28b6307 (diff)
downloadgmp-0ae32d97e977aa105d441c5b56ecf851a0facea2.tar.gz
mpn/generic/mod_1_3.c: Use default in a switch (reduce warnings)
Diffstat (limited to 'mpn')
-rw-r--r--mpn/generic/mod_1_3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mpn/generic/mod_1_3.c b/mpn/generic/mod_1_3.c
index 4d4be5d24..e4a908d62 100644
--- a/mpn/generic/mod_1_3.c
+++ b/mpn/generic/mod_1_3.c
@@ -110,10 +110,9 @@ mpn_mod_1s_3p (mp_srcptr ap, mp_size_t n, mp_limb_t b, const mp_limb_t cps[6])
add_ssaaaa (rh, rl, rh, rl, ph, pl);
n -= 3;
break;
- case 2: /* n mod 3 = 1 */
+ default: /* n mod 3 = 1; (case 2)*/
rh = 0;
- rl = ap[n - 1];
- n -= 1;
+ rl = ap[--n];
break;
case 1: /* n mod 3 = 2 */
rh = ap[n - 1];