Fixes isNil errors for compatibility with latest Nim.
This commit is contained in:
parent
e06ad6e497
commit
8134427266
6 changed files with 3 additions and 10 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue