[pypy-commit] pypy default: fix translation when CLOCK_T is unsigned (BSDs)
pjenvey
pypy.commits at gmail.com
Tue Dec 22 03:01:20 EST 2015
Author: Philip Jenvey <pjenvey at underboss.org>
Branch:
Changeset: r81417:49495a30004c
Date: 2015-12-21 15:52 -0800
http://bitbucket.org/pypy/pypy/changeset/49495a30004c/
Log: fix translation when CLOCK_T is unsigned (BSDs)
diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -1302,7 +1302,7 @@
try:
# note: times() can return a negative value (or even -1)
# even if there is no error
- result = widen(c_times(l_tmsbuf))
+ result = rffi.cast(lltype.Signed, c_times(l_tmsbuf))
if result == -1:
errno = get_saved_errno()
if errno != 0:
More information about the pypy-commit
mailing list