mirror of https://github.com/python/cpython
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
This commit is contained in:
parent
eab3b3f1c6
commit
629023c05b
|
@ -338,7 +338,7 @@ frame_block_unwind(PyFrameObject *f)
|
|||
assert(f->f_iblock > 0);
|
||||
f->f_iblock--;
|
||||
PyTryBlock *b = &f->f_blockstack[f->f_iblock];
|
||||
int delta = (f->f_stacktop - f->f_valuestack) - b->b_level;
|
||||
intptr_t delta = (f->f_stacktop - f->f_valuestack) - b->b_level;
|
||||
while (delta > 0) {
|
||||
frame_stack_pop(f);
|
||||
delta--;
|
||||
|
|
Loading…
Reference in New Issue