mirror of
https://github.com/python/cpython.git
synced 2025-11-11 19:12:05 +00:00
[3.14] gh-138264: Fix gcc 14 compiler warnings (GH-138265) (GH-138426)
(cherry picked from commit 4a33077fdb)
This commit is contained in:
parent
537b558ce9
commit
9ec4e3838a
6 changed files with 23 additions and 23 deletions
8
Python/executor_cases.c.h
generated
8
Python/executor_cases.c.h
generated
|
|
@ -1576,7 +1576,7 @@
|
|||
new_frame = _PyFrame_PushUnchecked(tstate, getitem, 2, frame);
|
||||
new_frame->localsplus[0] = container;
|
||||
new_frame->localsplus[1] = sub;
|
||||
frame->return_offset = 6 ;
|
||||
frame->return_offset = 6u ;
|
||||
stack_pointer[-3].bits = (uintptr_t)new_frame;
|
||||
stack_pointer += -2;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
|
|
@ -1944,8 +1944,8 @@
|
|||
gen->gi_frame_state = FRAME_EXECUTING;
|
||||
gen->gi_exc_state.previous_item = tstate->exc_info;
|
||||
tstate->exc_info = &gen->gi_exc_state;
|
||||
assert( 2 + oparg <= UINT16_MAX);
|
||||
frame->return_offset = (uint16_t)( 2 + oparg);
|
||||
assert( 2u + oparg <= UINT16_MAX);
|
||||
frame->return_offset = (uint16_t)( 2u + oparg);
|
||||
gen_frame->previous = frame;
|
||||
stack_pointer[-1].bits = (uintptr_t)gen_frame;
|
||||
break;
|
||||
|
|
@ -4544,7 +4544,7 @@
|
|||
gen->gi_exc_state.previous_item = tstate->exc_info;
|
||||
tstate->exc_info = &gen->gi_exc_state;
|
||||
gen_frame->previous = frame;
|
||||
frame->return_offset = (uint16_t)( 2 + oparg);
|
||||
frame->return_offset = (uint16_t)( 2u + oparg);
|
||||
stack_pointer[0].bits = (uintptr_t)gen_frame;
|
||||
stack_pointer += 1;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue