Skip to content

Commit

Permalink
Clean: Removed a bunch of warnings (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaPoo authored Dec 17, 2023
1 parent 6d25cbe commit 34cdea2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 34cdea2

Please sign in to comment.