Skip to content

Commit

Permalink
fix: 1.6.x compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Jul 25, 2024
1 parent 1e9658c commit 8b70dc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion constantine/named/deriv/parser_curves.nim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export Algebra, CurveFamily, SexticTwist
template getCoef(c: CurveCoef, curveName: untyped): untyped {.dirty.}=
case c.kind
of NoCoef:
error "Unreachable"
{.warning[UnreachableCode]: off.}: # we need to keep the discard for 1.6.x compat
error "Unreachable"
nnkDiscardStmt.newTree(newLit "Dummy")
of Small:
newLit c.coef
of Large:
Expand Down

0 comments on commit 8b70dc1

Please sign in to comment.