Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: define PY_SSIZE_T_CLEAN in _lz77.c #228

Merged
merged 1 commit into from Aug 9, 2021
Merged

Conversation

kaechele
Copy link
Contributor

@kaechele kaechele commented Aug 3, 2021

On newer versions of Python (3.10+) throw the following error:

Error: (SystemError) "PY_SSIZE_T_CLEAN macro must be defined for '#' formats".

This commit fixes this by defining the PY_SSIZE_T_CLEAN macro as
recommended in the Python
docs
.

Signed-off-by: Felix Kaechele felix@kaechele.ca

First reported in Fedora here: https://bugzilla.redhat.com/show_bug.cgi?id=1987779

On newer versions of Python (3.10+) throw the following error:

  Error:    (SystemError) "PY_SSIZE_T_CLEAN macro must be defined for '#' formats".

This commit fixes this by defining the PY_SSIZE_T_CLEAN macro as
recommended in the [Python
docs](https://docs.python.org/3/c-api/arg.html#strings-and-buffers).

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
@glx22 glx22 merged commit 81aaa92 into OpenTTD:master Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants