From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 10 Jul 2026 11:36:20 +0000 (+0200) Subject: [3.14] gh-153444: Fix compile warning in `Modules/_interpchannelsmodule.c` (GH-153445... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fff26a0e87e87f259f7f1f3f5b247efd8073820b;p=thirdparty%2FPython%2Fcpython.git [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 33678dc79f00059aff09ac88f188ef2192031a85) Co-authored-by: sobolevn --- diff --git a/Modules/_interpchannelsmodule.c b/Modules/_interpchannelsmodule.c index afaa42562771..c38495058692 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);