Author: Richard Plangger <planri...@gmail.com> Branch: Changeset: r85480:e3bd32fc0036 Date: 2016-07-01 10:16 +0200 http://bitbucket.org/pypy/pypy/changeset/e3bd32fc0036/
Log: remove a little endian check. ctypes does not assign arrays in big endian order for int128_t (s390x) diff --git a/rpython/rtyper/lltypesystem/ll2ctypes.py b/rpython/rtyper/lltypesystem/ll2ctypes.py --- a/rpython/rtyper/lltypesystem/ll2ctypes.py +++ b/rpython/rtyper/lltypesystem/ll2ctypes.py @@ -171,10 +171,7 @@ _length_ = 2 @property def value(self): - if sys.byteorder == 'little': - res = self[0] | (self[1] << 64) - else: - res = self[1] | (self[0] << 64) + res = self[0] | (self[1] << 64) if res >= (1 << 127): res -= 1 << 128 return res _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit