Fix #2573 - GCC build warning in tls_builtin.c::mul()

This commit is contained in:
Sergey Lyubka committed 2024-01-20 08:51:01 +00:00
1 parent a1c5995967
commit f883504d2d
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -9208,7 +9208,9 @@ static void sub(fe out, const fe a, const fe b) {
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};
unsigned i, j;
+3 -1
View File
@@ -116,7 +116,9 @@ static void sub(fe out, const fe a, const fe b) {
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};
unsigned i, j;