[pypy-issue] [issue730] resource.timeval has a wrong size in 64-bit builds on Mac OS X

Oleg Oshmyan tracker at bugs.pypy.org
Fri May 27 18:23:44 CEST 2011


New submission from Oleg Oshmyan <chortos at inbox.lv>:

In the 64-bit environment on Mac OS X, the long type takes 8 bytes but the 
tv_usec field of struct timeval still takes only 4 bytes. lib_pypy/resource.py 
defines tv_usec as a c_long, which wrongly makes ctypes think it takes 8 bytes; 
thus everything that uses timeval breaks.

----------
messages: 2551
nosy: chortos, pypy-issue
priority: bug
status: unread
title: resource.timeval has a wrong size in 64-bit builds on Mac OS X

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue730>
________________________________________


More information about the pypy-issue mailing list