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

Unaryops #46

Closed
wants to merge 3 commits into from
Closed

Unaryops #46

wants to merge 3 commits into from

Conversation

iritkatriel
Copy link
Owner

No description provided.

PyObject *tmp = REG(oparg2);
REG(oparg2) = res;
Py_XDECREF(tmp);
ERROR_IF(res == NULL, error);

Choose a reason for hiding this comment

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

Why destroy the register before jumping to the error label?

Also, Isn't there a macro Py_SETREF() that does the little dance with the temp variable and the XDECREF?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks, I forgot what it was called. Everything here is now on the new PR (on today's main). So I can close this one and we only have one on the go.

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.

2 participants