Skip to content

Commit 19a0214

Browse files
[3.13] gh-153444: Fix compile warning in Modules/_interpchannelsmodule.c (GH-153445) (#153449)
gh-153444: Fix compile warning in `Modules/_interpchannelsmodule.c` (GH-153445) (cherry picked from commit 33678dc) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 31fac5d commit 19a0214

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/_interpchannelsmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2903,7 +2903,8 @@ channelsmod_create(PyObject *self, PyObject *args, PyObject *kwds)
29032903

29042904
int64_t cid = channel_create(&_globals.channels, unboundop);
29052905
if (cid < 0) {
2906-
(void)handle_channel_error(cid, self, cid);
2906+
// Negative `cid` can't be too big for a downcast:
2907+
(void)handle_channel_error((int)cid, self, cid);
29072908
return NULL;
29082909
}
29092910
module_state *state = get_module_state(self);

0 commit comments

Comments
 (0)