Fixes isNil errors for compatibility with latest Nim.

This commit is contained in:
Dominik Picheta 2018-08-27 17:27:09 +01:00
commit 8134427266
6 changed files with 3 additions and 10 deletions

View file

@ -51,7 +51,7 @@ proc getGlobal(g: ModuleGraph; ident: PSym): string =
else:
let n = vm.globalCtx.getGlobalValue(ident)
if n.isStrLit:
result = if n.strVal.isNil: "" else: n.strVal
result = n.strVal
else:
raiseVariableError(ident.name.s, "string")