summary refs log tree commit diff stats
path: root/compiler/evalffi.nim
diff options
context:
space:
mode:
authorSolitude <solitudesf@protonmail.com>2019-10-28 16:21:10 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-10-28 15:21:10 +0100
commit160c07be0018fe1313efebb240e92b6cd3c993ba (patch)
treef776117b24754b4b0cdfc7c2521c8957ec3ab1df /compiler/evalffi.nim
parentc58aa7705dd078dd41ee9f8ae8c89201f2441d52 (diff)
downloadNim-160c07be0018fe1313efebb240e92b6cd3c993ba.tar.gz
Fix code style errors (#12545)
Diffstat (limited to 'compiler/evalffi.nim')
-rw-r--r--compiler/evalffi.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/evalffi.nim b/compiler/evalffi.nim
index 5fac138ac..6b9346c64 100644
--- a/compiler/evalffi.nim
+++ b/compiler/evalffi.nim
@@ -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)