rickardp / splitstream

Continuous object splitter for C and Python
Apache License 2.0
44 stars 9 forks source link

Compilation issue in Visual C compiler #7

Closed marcus905 closed 4 years ago

marcus905 commented 4 years ago

The library fails to compile in Windows due to a bad intializer in splitstream_py.c:106.

According to the python documentation at https://docs.python.org/2/extending/newtypes.html the line should be

PyVarObject_HEAD_INIT(NULL, 0) instead of PyVarObject_HEAD_INIT(&PyType_Type, 0)

to avoid this issue.

I can send a pull request for this change, if you want.

rickardp commented 4 years ago

fixed by #9