-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c-ext: fix inconsistent type for
closed
attribute
In Zstd(De)?Compression(Reader|Writer) structs, `closed` is declared as `int`: ```C typedef struct { PyObject_HEAD ... int closed; ... } ZstdCompressionWriter; ``` but in [`PyMemberDef`](https://docs.python.org/3/c-api/structures.html#c.PyMemberDef), it's `T_BOOL`: ```C static PyMemberDef ZstdCompressionWriter_members[] = { {"closed", T_BOOL, offsetof(ZstdCompressionWriter, closed), READONLY, NULL}, {NULL}}; ``` which is `char`. This fixes regression tests on s390x (#105). Closes #164.
- Loading branch information
Showing
2 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters