8000 Fix unused variable and signed/unsigned warnings by rhettinger · Pull Request #15537 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Fix unused variable and signed/unsigned warnings #15537

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 6 commits into from
Aug 27, 2019
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
Fix signed/unsigned comparison warning
  • Loading branch information
rhettinger committed Aug 26, 2019
commit e4df1aecc070d53cf7698d90074717608f50082a
2 changes: 1 addition & 1 deletion Python/peephole.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
than +255 (encoded as multiple bytes), just to keep the peephole optimizer
simple. The optimizer leaves line number deltas unchanged. */

for (j = 0; j < tabsiz; j += 2) {
for (j = 0; j < (unsigned int) tabsiz; j += 2) {
if (lnotab[j] == 255) {
goto exitUnchanged;
}
Expand Down
0