Skip to content

Commit

Permalink
Fix compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed May 8, 2024
1 parent b0a4baa commit 7120fae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/epx/relic_ep2_curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ void ep2_curve_mul_a(fp2_t c, const fp2_t a) {
break;
#if FP_RDC != MONTY
case RLC_TINY:
fp2_mul_dig(c, a, ctx->ep2_a[0]);
fp2_mul_dig(c, a, ctx->ep2_a[0][0]);
break;
#endif
default:
Expand All @@ -711,7 +711,7 @@ void ep2_curve_mul_b(fp2_t c, const fp2_t a) {
break;
#if FP_RDC != MONTY
case RLC_TINY:
fp2_mul_dig(c, a, ctx->ep2_b[0]);
fp2_mul_dig(c, a, ctx->ep2_b[0][0]);
break;
#endif
default:
Expand Down
4 changes: 2 additions & 2 deletions src/epx/relic_ep4_curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void ep4_curve_mul_a(fp4_t c, const fp4_t a) {
break;
#if FP_RDC != MONTY
case RLC_TINY:
fp4_mul_dig(c, a, ctx->ep4_a[0]);
fp4_mul_dig(c, a, ctx->ep4_a[0][0][0]);
break;
#endif
default:
Expand All @@ -387,7 +387,7 @@ void ep4_curve_mul_b(fp4_t c, const fp4_t a) {
break;
#if FP_RDC != MONTY
case RLC_TINY:
fp4_mul_dig(c, a, ctx->ep4_b[0]);
fp4_mul_dig(c, a, ctx->ep4_b[0][0][0]);
break;
#endif
default:
Expand Down
4 changes: 2 additions & 2 deletions src/epx/relic_ep8_curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void ep8_curve_mul_a(fp8_t c, const fp8_t a) {
break;
#if FP_RDC != MONTY
case RLC_TINY:
fp8_mul_dig(c, a, ctx->ep8_a[0]);
fp8_mul_dig(c, a, ctx->ep8_a[0][0][0][0]);
break;
#endif
default:
Expand All @@ -255,7 +255,7 @@ void ep8_curve_mul_b(fp8_t c, const fp8_t a) {
break;
#if FP_RDC != MONTY
case RLC_TINY:
fp8_mul_dig(c, a, ctx->ep8_b[0]);
fp8_mul_dig(c, a, ctx->ep8_b[0][0][0][0]);
break;
#endif
default:
Expand Down

0 comments on commit 7120fae

Please sign in to comment.