Christian Heimes added the comment:

The constant is an unsigned long but PyModule_AddIntConstant() takes a signed 
long. You have to write your own function that uses PyLong_FromUnsignedLong() 
and PyModule_AddObject().

Do you get a compiler warning because 0x80000000U is larger than (1<<31)-1?

nosy: +christian.heimes

Python tracker <>
Python-bugs-list mailing list

Reply via email to