]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-126433: Change channel_info.count to int64_t (GH-126447) (#126826)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Nov 2024 10:32:09 +0000 (11:32 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2024 10:32:09 +0000 (10:32 +0000)
gh-126433: Change channel_info.count to int64_t (GH-126447)

Fix compiler warnings on 32-bit Windows: change channel_info.count
type from Py_ssize_t to int64_t in _interpchannelsmodule.c.
(cherry picked from commit 09d7083962062acfef7e7a9a309a01fb70ad8276)

Co-authored-by: Victor Stinner <vstinner@python.org>
Modules/_interpchannelsmodule.c

index 8e6b21db76e01c87550158fa36682c982020d118..4c1b4b5a76ce08c57a2a916e5c82bcc4a0a36b84 100644 (file)
@@ -2047,7 +2047,7 @@ struct channel_info {
             int recv;
         } cur;
     } status;
-    Py_ssize_t count;
+    int64_t count;
 };
 
 static int