Author: Richard Plangger <planri...@gmail.com> Branch: py3.5 Changeset: r87823:be4b615cd965 Date: 2016-10-16 10:07 +0200 http://bitbucket.org/pypy/pypy/changeset/be4b615cd965/
Log: intmask the ffi return value fo rposix.cpu_count diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py --- a/pypy/module/posix/interp_posix.py +++ b/pypy/module/posix/interp_posix.py @@ -2213,7 +2213,7 @@ return space.call_function(w_terminal_size, w_tuple) def cpu_count(space): - count = rposix.cpu_count() + count = intmask(rposix.cpu_count()) if count <= 0: return space.w_None return space.wrap(count) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit