]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110850: PyTime_Time() return 0 on success (GH-115713)
authorVictor Stinner <vstinner@python.org>
Tue, 20 Feb 2024 13:35:41 +0000 (14:35 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2024 13:35:41 +0000 (14:35 +0100)
Thanks!

Python/pytime.c

index fb0ed85c541e68ca6f1f4ba9dde8267af35081fe..8b3c7128aae3bc3d75ac4fa59fdeebbbd3208129 100644 (file)
@@ -1053,7 +1053,7 @@ PyTime_Time(PyTime_t *result)
         *result = 0;
         return -1;
     }
-    return 1;
+    return 0;
 }
 
 int