diff options
author | Victor Stinner <vstinner@python.org> | 2020-01-21 11:47:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 11:47:29 (GMT) |
commit | 629023c05be24fa2f01c914c739aaa5a61a0304c (patch) | |
tree | 7b5adb90a28b80e663cc8661297ce04f0bdc31bb /Objects/frameobject.c | |
parent | eab3b3f1c60afecfb4db3c3619109684cb04bd60 (diff) | |
download | cpython-629023c05be24fa2f01c914c739aaa5a61a0304c.zip cpython-629023c05be24fa2f01c914c739aaa5a61a0304c.tar.gz cpython-629023c05be24fa2f01c914c739aaa5a61a0304c.tar.bz2 |
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
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r-- | Objects/frameobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index d7acb41..4469e3c 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -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--; |