Skip to content

Commit

Permalink
Add ifdef guards here.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Jan 27, 2025
1 parent 802ce0d commit c9ec538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/epx/relic_ep2_curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,9 @@ void ep2_curve_set_twist(int type) {
fp2_new(u);
bn_new(r);
bn_new(h);

switch (ep_param_get()) {
#if defined(EP_ENDOM)
#if FP_PRIME == 158
case BN_P158:
ASSIGN(BN_P158);
Expand Down Expand Up @@ -866,6 +867,7 @@ void ep2_curve_set_twist(int type) {
ASSIGN(B12_P1150);
break;
#endif
#endif /* EP_ENDOM */
default:
(void)str;
RLC_THROW(ERR_NO_VALID);
Expand Down

0 comments on commit c9ec538

Please sign in to comment.