Skip to content

Commit

Permalink
Fix code style errors (#12545)
Browse files Browse the repository at this point in the history
(cherry picked from commit 160c07b)
  • Loading branch information
SolitudeSF authored and narimiran committed Oct 30, 2019
1 parent f991d2c commit 7c2d64c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/evalffi.nim
Expand Up @@ -63,9 +63,9 @@ proc importcSymbol*(conf: ConfigRef, sym: PSym): PNode =
if lib != nil and lib.path.kind notin {nkStrLit..nkTripleStrLit}:
globalError(conf, sym.info, "dynlib needs to be a string lit")
var theAddr: pointer
if (lib.isNil or lib.kind == libHeader) and not gExehandle.isNil:
if (lib.isNil or lib.kind == libHeader) and not gExeHandle.isNil:
# first try this exe itself:
theAddr = gExehandle.symAddr(name)
theAddr = gExeHandle.symAddr(name)
# then try libc:
if theAddr.isNil:
let dllhandle = getDll(conf, gDllCache, libcDll, sym.info)
Expand Down

0 comments on commit 7c2d64c

Please sign in to comment.