Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #5738 #6059

Merged
merged 1 commit into from Jul 15, 2017
Merged

Fixes #5738 #6059

merged 1 commit into from Jul 15, 2017

Conversation

yglukhov
Copy link
Member

@yglukhov yglukhov commented Jul 6, 2017

No description provided.

@yglukhov yglukhov force-pushed the fix-5738 branch 2 times, most recently from fc75a8b to 560f42c Compare July 6, 2017 17:30
Copy link
Contributor

@dom96 dom96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. I need @Araq's opinion though, he knows more about gc safety than me.

@@ -38,7 +38,8 @@ template createCb(retFutureSym, iteratorNameSym,
"`nil` Future?"
raise newException(AssertionError, msg % name)
else:
next.callback = cb
{.gcsafe.}:
next.callback = cast[proc() {.closure, gcsafe.}](cb)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use a type conversion instead of a cast here?

@@ -0,0 +1,36 @@
discard """
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay, tests!

@yglukhov
Copy link
Member Author

Rebased and squashed.

@Araq Araq merged commit bdf6f59 into nim-lang:devel Jul 15, 2017
@yglukhov yglukhov deleted the fix-5738 branch July 17, 2017 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants