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

gh-87092: Make jump target label equal to the offset of the target in the instructions sequence #102093

Merged
merged 6 commits into from
Feb 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Py_ssize_t --> int
  • Loading branch information
iritkatriel authored Feb 22, 2023
commit 9a7ca999801f35277611435b4f136ed2ab415e9b
2 changes: 1 addition & 1 deletion Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -9732,7 +9732,7 @@ instructions_to_cfg(PyObject *instructions, cfg_builder *g)
}
}

for (Py_ssize_t i = 0; i < num_insts; i++) {
for (int i = 0; i < num_insts; i++) {
if (is_target[i]) {
jump_target_label lbl = {i};
RETURN_IF_ERROR(cfg_builder_use_label(g, lbl));
Expand Down