Skip to content

Commit 7395cc6

Browse files
committed
final else after a chain of if/else if
1 parent 6260241 commit 7395cc6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bn_mp_reduce_is_2k.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ mp_bool mp_reduce_is_2k(const mp_int *a)
2929
iz = 1;
3030
}
3131
}
32+
return MP_YES;
33+
} else {
34+
return MP_YES;
3235
}
33-
return MP_YES;
3436
}
3537

3638
#endif

bn_mp_reduce_is_2k_l.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ mp_bool mp_reduce_is_2k_l(const mp_int *a)
2020
}
2121
}
2222
return (iy >= (a->used/2)) ? MP_YES : MP_NO;
23-
23+
} else {
24+
return MP_NO;
2425
}
25-
return MP_NO;
2626
}
2727

2828
#endif

0 commit comments

Comments
 (0)