Skip to content

Commit 0cb3e7d

Browse files
Fix warning for _YIELD_VALUE
1 parent f5c7535 commit 0cb3e7d

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Modules/_testinternalcapi/test_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1867,7 +1867,7 @@ dummy_func(
18671867
assert(INLINE_CACHE_ENTRIES_SEND == INLINE_CACHE_ENTRIES_FOR_ITER);
18681868
#if TIER_ONE && defined(Py_DEBUG)
18691869
if (!PyStackRef_IsNone(frame->f_executable)) {
1870-
int i = frame->instr_ptr - _PyFrame_GetBytecode(frame);
1870+
int i = (int)(frame->instr_ptr - _PyFrame_GetBytecode(frame));
18711871
int opcode = _Py_GetBaseCodeUnit(_PyFrame_GetCode(frame), i).op.code;
18721872
assert(opcode == SEND || opcode == FOR_ITER);
18731873
}

Python/executor_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)