Skip to content

Commit

Permalink
Conversion instead of cast
Browse files Browse the repository at this point in the history
  • Loading branch information
yglukhov committed Jul 11, 2017
1 parent 560f42c commit 9eac0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/asyncmacro.nim
Expand Up @@ -39,7 +39,7 @@ template createCb(retFutureSym, iteratorNameSym,
raise newException(AssertionError, msg % name)
else:
{.gcsafe.}:
next.callback = cast[proc() {.closure, gcsafe.}](cb)
next.callback = (proc() {.closure, gcsafe.})(cb)
except:
futureVarCompletions

Expand Down

0 comments on commit 9eac0b6

Please sign in to comment.