Skip to content

gh-83714: Fix compiler warning in stat_nanosecond_timestamp()#141043

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:statx_sec_to_ns
Nov 5, 2025
Merged

gh-83714: Fix compiler warning in stat_nanosecond_timestamp()#141043
vstinner merged 1 commit into
python:mainfrom
vstinner:statx_sec_to_ns

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Nov 5, 2025

Disable the fast path on systems with 32-bit long.

Disable the fast path on systems with 32-bit long.
@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Nov 5, 2025

Fix the warnings:

./Modules/posixmodule.c:2638:31: warning: comparison is always true due to limited range of data type [-Wtype-limits]
./Modules/posixmodule.c:2638:45: warning: comparison is always true due to limited range of data type [-Wtype-limits]

cc @cmaloney @jbosboom