final else after a chain of if/else if
diff --git a/bn_mp_decr.c b/bn_mp_decr.c
index ea63034..e605f2c 100644
--- a/bn_mp_decr.c
+++ b/bn_mp_decr.c
@@ -27,7 +27,8 @@ int mp_decr(mp_int *a)
mp_zero(a);
}
return MP_OKAY;
+ } else {
+ return mp_sub_d(a, 1uL,a);
}
- return mp_sub_d(a, 1uL,a);
}
#endif
diff --git a/bn_mp_incr.c b/bn_mp_incr.c
index af1b4c6..052caef 100644
--- a/bn_mp_incr.c
+++ b/bn_mp_incr.c
@@ -23,7 +23,8 @@ int mp_incr(mp_int *a)
} else if (a->dp[0] < MP_MASK) {
a->dp[0]++;
return MP_OKAY;
+ } else {
+ return mp_add_d(a, 1uL,a);
}
- return mp_add_d(a, 1uL,a);
}
#endif