Skip to content

Fix issues reported by cpython-review-toolkit in faulthandler#151341

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:faulthandler
Open

Fix issues reported by cpython-review-toolkit in faulthandler#151341
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:faulthandler

Conversation

@vstinner

Copy link
Copy Markdown
Member
  • 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.

* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant