mirror of
https://github.com/google/brotli.git
synced 2026-09-22 06:35:52 +00:00
[PR #134] fix RuntimeError by terminating kwlist with NULL pointer #749
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/google/brotli/pull/134
State: closed
Merged: No
The
<malloc.h>header is non-standard, and causes compilation error on OS X:Just including
<stdlib.h>should be sufficient in this case.I also realised that I broke the
brotli.compressfunction in #131... at least on OS X, running the tests raises:That's because I forgot to terminate the
kwlistarray withNULLpointer.Sorry about that.
Strangely enough this error doesn't occur on Windows.
That's one more reason to have continuous integration systems like Travis/Appveyor running tests on multiple platforms. As a bonus, we could have them automatically build Python wheels for both Win and Mac, and deploying them to Github Releases every time a new release is tagged.
I'll send a specific PR for that soon.