Skip to content

Commit

Permalink
Fixed a bug from native circuit input checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
markkurossi committed Mar 7, 2022
1 parent 6cb2f1f commit 251700d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/ast/builtin.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func nativeCircuit(name string, block *ssa.Block, ctx *Codegen,
ctx.Native[fp] = circ
}

if len(circ.Inputs) < len(args) {
if len(circ.Inputs) > len(args) {
return nil, nil, ctx.Errorf(loc,
"not enought argument in call to native")
} else if len(circ.Inputs) < len(args) {
Expand Down

0 comments on commit 251700d

Please sign in to comment.