summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-02-20 13:35:41 (GMT)
committerGitHub <noreply@github.com>2024-02-20 13:35:41 (GMT)
commitd24bed5ba0c60bbcc1662ae51071067799862fe0 (patch)
tree441c735db22684effff79d7f3547bad2def20919 /Python
parentdcba21f905ef170b2cd0a6433b6fe6bcb4316a67 (diff)
downloadcpython-d24bed5ba0c60bbcc1662ae51071067799862fe0.zip
cpython-d24bed5ba0c60bbcc1662ae51071067799862fe0.tar.gz
cpython-d24bed5ba0c60bbcc1662ae51071067799862fe0.tar.bz2
gh-110850: PyTime_Time() return 0 on success (GH-115713)
Thanks!
Diffstat (limited to 'Python')
-rw-r--r--Python/pytime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index fb0ed85..8b3c712 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -1053,7 +1053,7 @@ PyTime_Time(PyTime_t *result)
*result = 0;
return -1;
}
- return 1;
+ return 0;
}
int