Closed sharkcz closed 2 years ago
If python devs redefined a macro in their headers in a non-backwards compatible way in a point release, perhaps the correct place to file this bug is with the python devs. Python 3.9.8 and python 3.10 do not have this issue on macOS.
From reading the pep on changing macros to functions, I see this change was intentional.... argh!
I guess extra parentheses should not hurt anything for earlier python versions, so I will merge your pull request.
Thank you!
Thanks, it also brought consistency to sigil's code, because PyUnicode_2BYTE_DATA() and PyUnicode_4BYTE_DATA() couple lines further have already used the additional parens.
This is related to https://bugzilla.redhat.com/show_bug.cgi?id=2083977, which was about 0.9.x, but the issue fixed there is still relevant in the recent code.