mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-23 20:11:49 +00:00
Fix #2573 - GCC build warning in tls_builtin.c::mul()
This commit is contained in:
1 parent
a1c5995967
commit
f883504d2d
2 files changed
+6
-2
No files matched your search
+3
-1
@@ -9208,7 +9208,9 @@ static void sub(fe out, const fe a, const fe b) {
|
|||||||
propagate(out, (limb_t) (1 + carry));
|
propagate(out, (limb_t) (1 + carry));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mul(fe out, const fe a, const fe b, unsigned nb) {
|
// `b` can contain less than 8 limbs, thus we use `limb_t *` instead of `fe`
|
||||||
|
// to avoid build warnings
|
||||||
|
static void mul(fe out, const fe a, const limb_t *b, unsigned nb) {
|
||||||
limb_t accum[2 * NLIMBS] = {0};
|
limb_t accum[2 * NLIMBS] = {0};
|
||||||
unsigned i, j;
|
unsigned i, j;
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -116,7 +116,9 @@ static void sub(fe out, const fe a, const fe b) {
|
|||||||
propagate(out, (limb_t) (1 + carry));
|
propagate(out, (limb_t) (1 + carry));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mul(fe out, const fe a, const fe b, unsigned nb) {
|
// `b` can contain less than 8 limbs, thus we use `limb_t *` instead of `fe`
|
||||||
|
// to avoid build warnings
|
||||||
|
static void mul(fe out, const fe a, const limb_t *b, unsigned nb) {
|
||||||
limb_t accum[2 * NLIMBS] = {0};
|
limb_t accum[2 * NLIMBS] = {0};
|
||||||
unsigned i, j;
|
unsigned i, j;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user