Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
bpo-46841: Add a_Py_SET_OPCODE
macro#31780
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The C compiler is allowed to assume that foruint8_t *p1
,_Py_CODEUNIT *p2
,p1
andp2
don't alias. If you add the specialchar *
cast, then it cannot make that (in this case false) assumption.
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedMar 9, 2022
When you're done making the requested changes, leave the comment: |
LGTM, apart from the missing cast. |
Uh oh!
There was an error while loading.Please reload this page.
Now that we don't modify opargs anymore, this is a cleaner (and slighly more efficient) way of performing this common move.
https://bugs.python.org/issue46841