diff options
author | Clyybber <darkmine956@gmail.com> | 2020-08-08 12:36:20 +0200 |
---|---|---|
committer | Clyybber <darkmine956@gmail.com> | 2020-08-08 12:36:20 +0200 |
commit | 38068f977843c5070667f40c199f037f9a838d7c (patch) | |
tree | ee241fe721647b24f15640165ac6880ec162a580 /compiler/transf.nim | |
parent | ef6358f0b0be71266d9fa7ae19a3b6f193b305cf (diff) | |
download | Nim-38068f977843c5070667f40c199f037f9a838d7c.tar.gz |
Make explicit {.nimcall.} a seperate calling convention
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r-- | compiler/transf.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim index 29344e7a1..6d497c546 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -539,7 +539,7 @@ proc transformConv(c: PTransf, n: PNode): PNode = # happens sometimes for generated assignments, etc. of tyProc: result = transformSons(c, n) - if dest.callConv == ccClosure and source.callConv == ccDefault: + if dest.callConv == ccClosure and source.callConv in ccDefault: result = generateThunk(c, result[1], dest) else: result = transformSons(c, n) |