summaryrefslogtreecommitdiffstats
path: root/Python/pytime.c
diff options
context:
space:
mode:
authorChris Eibl <138194463+chris-eibl@users.noreply.github.com>2025-03-15 18:41:34 (GMT)
committerGitHub <noreply@github.com>2025-03-15 18:41:34 (GMT)
commitf104c19a94ae43f788e509019901b1f48fbd134e (patch)
tree2c573ab2d180c2aa689196a7300f18a4df231203 /Python/pytime.c
parentfaa80fcf46f379dd13ad2d4d2a406449d37c2d60 (diff)
downloadcpython-f104c19a94ae43f788e509019901b1f48fbd134e.zip
cpython-f104c19a94ae43f788e509019901b1f48fbd134e.tar.gz
cpython-f104c19a94ae43f788e509019901b1f48fbd134e.tar.bz2
GH-131296: fix clang-cl warning on Windows in pytime.c (GH-131297)
fix warning : integer literal is too large to be represented in a signed integer type, interpreting as unsigned [-Wimplicitly-unsigned-literal]
Diffstat (limited to 'Python/pytime.c')
-rw-r--r--Python/pytime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index 2ca9203..23e1608 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -915,7 +915,7 @@ py_get_system_clock(PyTime_t *tp, _Py_clock_info_t *info, int raise_exc)
/* 11,644,473,600,000,000,000: number of nanoseconds between
the 1st january 1601 and the 1st january 1970 (369 years + 89 leap
days). */
- PyTime_t ns = large.QuadPart * 100 - 11644473600000000000;
+ PyTime_t ns = (large.QuadPart - 116444736000000000) * 100;
*tp = ns;
if (info) {
// GetSystemTimePreciseAsFileTime() is implemented using