Skip to content

Commit

Permalink
Check for nil config before setting program level flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rrb3942 committed Nov 1, 2023
1 parent 7e9f0ad commit ec7a42b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ func Compile(tree *parser.Tree, config *conf.Config) (program *Program, err erro
Arguments: c.arguments,
Functions: c.functions,
DebugInfo: c.debugInfo,
ExprNative: config.ExprNative,
}

if config != nil {
program.ExprNative = config.ExprNative
}
return
}
Expand Down

0 comments on commit ec7a42b

Please sign in to comment.