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

Clean: Removed a bunch of warnings #59

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -4074,7 +4074,7 @@ dummy_func(
}

op(_SETUP_TIER2_FRAME, (scratch_size/4 --)) {
DEOPT_IF(!_PyFrame_ConvertToTier2(tstate, frame, oparg, scratch_size) != 0);
DEOPT_IF(!_PyFrame_ConvertToTier2(tstate, frame, oparg, (int)(Py_ssize_t)scratch_size) != 0);
}

op(_INSERT, (unused[oparg], top -- top, unused[oparg])) {
Expand Down
2 changes: 1 addition & 1 deletion Python/executor_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Python/optimizer_analysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ compile_sym_to_uops(_Py_UOpsEmitter *emitter,
// These are for unknown stack entries.
if (_PyOpcode_isunknown(sym->inst.opcode)) {
// Leave it be. These are initial values from the start
return;
return 0;
}
inst = sym->inst;
inst.opcode = sym->inst.opcode == INIT_FAST ? LOAD_FAST : sym->inst.opcode;
Expand Down Expand Up @@ -1660,7 +1660,7 @@ emit_uops_from_impure_store(
len * sizeof(_PyUOpInstruction)
);

emitter->curr_i += len;
emitter->curr_i += (int)len;
return 0;
}

Expand All @@ -1685,7 +1685,7 @@ emit_uops_from_stores(
0,
0,
// Should not use more than 20% of the space for common expressions.
(writebuffer_end - trace_writebuffer) / 5,
(int)((writebuffer_end - trace_writebuffer) / 5),
sym_store,
// One wasted object, but it's fine I'd rather not use that to prevent logic bugs.
(PyObject **)(writebuffer_end - 1),
Expand Down