literal suffix
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
diff --git a/bn_mp_and.c b/bn_mp_and.c
index e781f31..c259f8d 100644
--- a/bn_mp_and.c
+++ b/bn_mp_and.c
@@ -26,7 +26,7 @@ mp_err mp_and(const mp_int *a, const mp_int *b, mp_int *c)
x = ac & MP_MASK;
ac >>= MP_DIGIT_BIT;
} else {
- x = (i >= a->used) ? 0 : a->dp[i];
+ x = (i >= a->used) ? 0uL : a->dp[i];
}
/* convert to two complement if negative */
@@ -35,7 +35,7 @@ mp_err mp_and(const mp_int *a, const mp_int *b, mp_int *c)
y = bc & MP_MASK;
bc >>= MP_DIGIT_BIT;
} else {
- y = (i >= b->used) ? 0 : b->dp[i];
+ y = (i >= b->used) ? 0uL : b->dp[i];
}
c->dp[i] = x & y;
diff --git a/bn_mp_or.c b/bn_mp_or.c
index 6f09a70..cdacbfb 100644
--- a/bn_mp_or.c
+++ b/bn_mp_or.c
@@ -26,7 +26,7 @@ mp_err mp_or(const mp_int *a, const mp_int *b, mp_int *c)
x = ac & MP_MASK;
ac >>= MP_DIGIT_BIT;
} else {
- x = (i >= a->used) ? 0 : a->dp[i];
+ x = (i >= a->used) ? 0uL : a->dp[i];
}
/* convert to two complement if negative */
@@ -35,7 +35,7 @@ mp_err mp_or(const mp_int *a, const mp_int *b, mp_int *c)
y = bc & MP_MASK;
bc >>= MP_DIGIT_BIT;
} else {
- y = (i >= b->used) ? 0 : b->dp[i];
+ y = (i >= b->used) ? 0uL : b->dp[i];
}
c->dp[i] = x | y;
diff --git a/bn_mp_xor.c b/bn_mp_xor.c
index 90958d4..71e7ca1 100644
--- a/bn_mp_xor.c
+++ b/bn_mp_xor.c
@@ -26,7 +26,7 @@ mp_err mp_xor(const mp_int *a, const mp_int *b, mp_int *c)
x = ac & MP_MASK;
ac >>= MP_DIGIT_BIT;
} else {
- x = (i >= a->used) ? 0 : a->dp[i];
+ x = (i >= a->used) ? 0uL : a->dp[i];
}
/* convert to two complement if negative */
@@ -35,7 +35,7 @@ mp_err mp_xor(const mp_int *a, const mp_int *b, mp_int *c)
y = bc & MP_MASK;
bc >>= MP_DIGIT_BIT;
} else {
- y = (i >= b->used) ? 0 : b->dp[i];
+ y = (i >= b->used) ? 0uL : b->dp[i];
}
c->dp[i] = x ^ y;