final else after a chain of if/else if
diff --git a/bn_mp_reduce_is_2k.c b/bn_mp_reduce_is_2k.c
index fe3aeea..bb70b55 100644
--- a/bn_mp_reduce_is_2k.c
+++ b/bn_mp_reduce_is_2k.c
@@ -29,8 +29,10 @@ mp_bool mp_reduce_is_2k(const mp_int *a)
iz = 1;
}
}
+ return MP_YES;
+ } else {
+ return MP_YES;
}
- return MP_YES;
}
#endif
diff --git a/bn_mp_reduce_is_2k_l.c b/bn_mp_reduce_is_2k_l.c
index b2c7292..36fc59f 100644
--- a/bn_mp_reduce_is_2k_l.c
+++ b/bn_mp_reduce_is_2k_l.c
@@ -20,9 +20,9 @@ mp_bool mp_reduce_is_2k_l(const mp_int *a)
}
}
return (iy >= (a->used/2)) ? MP_YES : MP_NO;
-
+ } else {
+ return MP_NO;
}
- return MP_NO;
}
#endif