Skip to content

Commit 629023c

Browse files
authored
bpo-33387: Fix compiler warning in frame_block_unwind() (GH-18099)
Replace int with intptr_t to fix the warning: objects\frameobject.c(341): warning C4244: 'initializing': conversion from '__int64' to 'int', possible loss of data
1 parent eab3b3f commit 629023c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/frameobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ frame_block_unwind(PyFrameObject *f)
338338
assert(f->f_iblock > 0);
339339
f->f_iblock--;
340340
PyTryBlock *b = &f->f_blockstack[f->f_iblock];
341-
int delta = (f->f_stacktop - f->f_valuestack) - b->b_level;
341+
intptr_t delta = (f->f_stacktop - f->f_valuestack) - b->b_level;
342342
while (delta > 0) {
343343
frame_stack_pop(f);
344344
delta--;

0 commit comments

Comments
 (0)