| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Disable the fast path on systems with 32-bit long.
|
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] |
Sorry, something went wrong.
|
!buildbot x86 Debian |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit c86068e 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F141043%2Fmerge The command will test the builders whose names match following regular expression: x86 Debian The builders matched are:
|
Sorry, something went wrong.
|
https://buildbot.python.org/#/builders/1285/builds/530 confirms that the compiler warnings on Modules/posixmodule.c are gone. |
Sorry, something went wrong.
|
On 32-bit, the fast path is not interesting, it only covers seconds in the range [-3; 2]: >>> -2**31 // 1_000_000_000 -3 >>> (2**31-1) // 1_000_000_000 2 |
Sorry, something went wrong.
| static PyObject * | ||
| stat_nanosecond_timestamp(_posixstate *state, time_t sec, unsigned long nsec) | ||
| { | ||
| #if SIZEOF_LONG >= 8 |
There was a problem hiding this comment.
I do not think this is correct. The comparison is always true, not always false if SIZEOF_LONG < 8.
Sorry, something went wrong.
There was a problem hiding this comment.
Would you mind to elaborate? I'm not sure that I understand your remark. What do you suggest?
Sorry, something went wrong.
There was a problem hiding this comment.
Previously, if SIZEOF_LONG < 8, the fast path PyLong_FromLongLong(sec * SEC_TO_NS + nsec) was always used. Now it is never used.
Sorry, something went wrong.
There was a problem hiding this comment.
I wrote a different fix: #141069
Sorry, something went wrong.
There was a problem hiding this comment.
I think that I now understood my mistake. Sorry about that :-( I read LONG_MIN (32-bit) instead of LLONG_MIN (64-bit).
Sorry, something went wrong.
…python#141043) Disable the fast path on systems with 32-bit long.
| Back | FazBrowse Home | New Git URL |
Disable the fast path on systems with 32-bit long.