Author: Philip Jenvey <pjen...@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: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit