]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix issues reported by cpython-review-toolkit in faulthandler (#151341)
authorVictor Stinner <vstinner@python.org>
Mon, 15 Jun 2026 11:11:26 +0000 (13:11 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2026 11:11:26 +0000 (13:11 +0200)
commitb6a2eef2c1e259fde6f416e34f9ecd636d17f0e9
tree0bef6611fc27d4c38ddc6e8257237aa17d3a01f7
parent552ce57e33ccb83c9e31cba1075f60c9364612a2
Fix issues reported by cpython-review-toolkit in faulthandler (#151341)

* snprintf() is not async-signal-safe: replace it with
  _Py_DumpDecimal().
* Fix tid type from 'long' to 'unsigned long'.
* Replace PyLong_AsLong() with PyLong_AsInt().
* Avoid unnecessary narrowing cast on _Py_write_noraise() call.
Modules/faulthandler.c