From cd6871ddb4ce3e405db6f6790a69e3cd0ee9e2de Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 9 Jul 2026 18:23:59 +0300 Subject: [PATCH] gh-153444: Fix compile warning in `Modules/_interpchannelsmodule.c` --- Modules/_interpchannelsmodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/_interpchannelsmodule.c b/Modules/_interpchannelsmodule.c index 358d51cf13f1afa..7b31b1f0c85d264 100644 --- a/Modules/_interpchannelsmodule.c +++ b/Modules/_interpchannelsmodule.c @@ -2935,7 +2935,8 @@ channelsmod_create(PyObject *self, PyObject *args, PyObject *kwds) int64_t cid = channel_create(&_globals.channels, defaults); if (cid < 0) { - (void)handle_channel_error(cid, self, cid); + // Negative `cid` can't be too big for a downcast: + (void)handle_channel_error((int)cid, self, cid); return NULL; } module_state *state = get_module_state(self);