fix typo, update tag to string function

This commit is contained in:
Aidan 2020-06-30 20:53:40 -07:00
parent 53adeacc6d
commit c253dc6375
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 3 additions and 1 deletions

View file

@ -63,7 +63,7 @@ func shs_while(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
var res *ast.Token
eval := cond.Eval(ft, vt, false)
if cond == nil || cond.Tag != ast.BOOL {
if eval == nil || eval.Tag != ast.BOOL {
log.Log(log.ERR,
"first argument to while must be a bool statement",
"while")