8000 gh-132775: Add _PyCode_VerifyStateless() by ericsnowcurrently · Pull Request #133221 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132775: Add _PyCode_VerifyStateless() #133221

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

Merged
Merged
Prev Previous commit
Fix a compiler warning.
  • Loading branch information
ericsnowcurrently committed May 5, 2025
commit 7bdfcac837ecaf6e919dd72711b5b85f4f6a7351
2 changes: 1 addition & 1 deletion 8704 Objects/codeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ code_returns_only_none(PyCodeObject *co)
if (!_PyCode_CheckPureFunction(co, NULL)) {
return 0;
}
Py_ssize_t len = Py_SIZE(co);
int len = (int)Py_SIZE(co);
assert(len > 0);

// The last instruction either returns or raises. We can take advantage
Expand Down
Loading
0