Skip to content

Commit

Permalink
bulk_addition.c,multi_scalar.c: fix Windows build failure.
Browse files Browse the repository at this point in the history
It conflicts with Apple compiler warning, but it's a warning...
  • Loading branch information
dot-asm committed Apr 26, 2021
1 parent 9756fd2 commit 46be9ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bulk_addition.c
Expand Up @@ -54,7 +54,7 @@ static void ptype##_head(ptype AB[2], const vec##bits mul_acc) \
ptype *A = AB, *B = AB+1; \
limb_t inf = vec_is_zero(A, sizeof(ptype##_affine)) | \
vec_is_zero(B, sizeof(ptype##_affine)); \
static const vec##bits zero = { }; \
static const vec##bits zero = { 0 }; \
\
sub_##field(B->Z, B->X, A->X); /* X2-X1 */ \
add_##field(B->X, B->X, A->X); /* X2+X1 */ \
Expand Down
2 changes: 1 addition & 1 deletion src/multi_scalar.c
Expand Up @@ -98,7 +98,7 @@ static void ptype##_gather_booth_wbits(ptype *p, const ptype##_affine row[], \
{ \
bool_t booth_sign = (booth_idx >> wbits) & 1; \
bool_t idx_is_zero; \
static const ptype##_affine infinity = { }; \
static const ptype##_affine infinity = { 0 }; \
\
booth_idx &= ((limb_t)1 << wbits) - 1; \
idx_is_zero = is_zero(booth_idx); \
Expand Down

0 comments on commit 46be9ea

Please sign in to comment.