Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jan 3, 2020
1 parent f25c438 commit 7312d5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/evalffi.nim
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ const
nkPtrLit = nkIntLit # hopefully we can get rid of this hack soon

proc importcSymbol*(conf: ConfigRef, sym: PSym): PNode =
var name = sym.cname
if name.len == 0: name = $sym.loc.r
var name = sym.cname # $sym.loc.r would point to internal name
# the AST does not support untyped pointers directly, so we use an nkIntLit
# that contains the address instead:
result = newNodeIT(nkPtrLit, sym.info, sym.typ)
Expand Down

0 comments on commit 7312d5a

Please sign in to comment.