Skip to content

Commit cd6871d

Browse files
committed
gh-153444: Fix compile warning in Modules/_interpchannelsmodule.c
1 parent dd8739a commit cd6871d

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
@@ -2935,7 +2935,8 @@ channelsmod_create(PyObject *self, PyObject *args, PyObject *kwds)
29352935

29362936
int64_t cid = channel_create(&_globals.channels, defaults);
29372937
if (cid < 0) {
2938-
(void)handle_channel_error(cid, self, cid);
2938+
// Negative `cid` can't be too big for a downcast:
2939+
(void)handle_channel_error((int)cid, self, cid);
29392940
return NULL;
29402941
}
29412942
module_state *state = get_module_state(self);

0 commit comments

Comments
 (0)