Open 123456abcdef opened 1 year ago
PyModule_AddIntConstant takes a long, linux is unix is LP64, so long is 64-bits wide, windows is LLP64, so long is 32-bits wide, so that highest set bit makes it negative on windows.
Fix would be using PyLong_FromLongLong and PyModule_AddObjectRef.
I encountered the following problem.
Linux environment
Python 3.11.3 zstandard 0.21.0
Win10 environment
Python 3.9.16 zstandard 0.21.0
It seems to be a OS specific difference not related to the Python version. Why is there a difference?