[pypy-svn] r46348 - pypy/dist/pypy/rpython/module
arigo at codespeak.net
arigo at codespeak.net
Wed Sep 5 18:07:49 CEST 2007
Author: arigo
Date: Wed Sep 5 18:07:48 2007
New Revision: 46348
Modified:
pypy/dist/pypy/rpython/module/ll_os.py
Log:
clock_t is unsigned on OS/X - missing a cast.
Modified: pypy/dist/pypy/rpython/module/ll_os.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_os.py (original)
+++ pypy/dist/pypy/rpython/module/ll_os.py Wed Sep 5 18:07:48 2007
@@ -276,7 +276,7 @@
l_tmsbuf = lltype.malloc(TMSP.TO, flavor='raw')
try:
result = os_times(l_tmsbuf)
- if result == -1:
+ if result == rffi.cast(self.CLOCK_T, -1):
raise OSError(rffi.get_errno(), "times failed")
return (
l_tmsbuf.c_tms_utime / CLOCK_TICKS_PER_SECOND,
More information about the Pypy-commit
mailing list