Commit 1af68f471b369d3f380820c2c9c66cda5253b4e5

czurnieden 2019-04-03T21:14:03

soothe compiler

diff --git a/bn_mp_decr.c b/bn_mp_decr.c
index 06792a0..d35b7ff 100644
--- a/bn_mp_decr.c
+++ b/bn_mp_decr.c
@@ -16,7 +16,7 @@
 /* Decrement "a" by one like "a--". Changes input! */
 int mp_decr(mp_int *a)
 {
-   int e;
+   int e = MP_OKAY;
    if (IS_ZERO(a)) {
       mp_set(a,1uL);
       a->sign = MP_NEG;
@@ -37,9 +37,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);
 }
 
 
diff --git a/bn_mp_incr.c b/bn_mp_incr.c
index a938c6d..b7cd24a 100644
--- a/bn_mp_incr.c
+++ b/bn_mp_incr.c
@@ -15,7 +15,7 @@
 /* Increment "a" by one like "a++". Changes input! */
 int mp_incr(mp_int *a)
 {
-   int e;
+   int e = MP_OKAY;
    if (IS_ZERO(a)) {
       mp_set(a,1uL);
       return MP_OKAY;
@@ -32,9 +32,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