Author: Richard Plangger <planri...@gmail.com> Branch: s390x-backend Changeset: r81880:ef5a0afd8184 Date: 2016-01-20 15:34 +0100 http://bitbucket.org/pypy/pypy/changeset/ef5a0afd8184/
Log: rbigint frombytes/tobytes is specific to little endian diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py --- a/rpython/rlib/rbigint.py +++ b/rpython/rlib/rbigint.py @@ -296,7 +296,7 @@ if not s: return NULLRBIGINT - if byteorder != BYTEORDER: + if byteorder == 'big': msb = ord(s[0]) itr = range(len(s)-1, -1, -1) else: @@ -336,7 +336,7 @@ if not signed and self.sign == -1: raise InvalidSignednessError() - bswap = byteorder != BYTEORDER + bswap = byteorder == 'big' d = _widen_digit(0) j = 0 imax = self.numdigits() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit