Skip to content

Commit fff26a0

Browse files
[3.14] gh-153444: Fix compile warning in Modules/_interpchannelsmodule.c (GH-153445) (#153448)
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 90c91b4 commit fff26a0

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)