STINNER Victor <victor.stin...@haypocalc.com> added the comment:

select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum) raises a 
OverflowError('signed integer is greater than maximum') on a 64 bits system. 
select.kevent() constructor parses the 4th argument using "i" (an int): 
sys.maxsize doesn't fit in a C int on a 64 bits system.

kevent() constructor parses the 4th argument using "i", but it pass a pointer 
to a void* value (e->udata). It would be better to use a temporary C int 
variable, and then write the int into udata using the right cast.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to