Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r46443:b112e4459024 Date: 2011-08-11 17:16 -0700 http://bitbucket.org/pypy/pypy/changeset/b112e4459024/
Log: rbigint.toint() is elidable diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py --- a/pypy/rlib/rbigint.py +++ b/pypy/rlib/rbigint.py @@ -215,6 +215,7 @@ # then modify the result. return _decimalstr_to_bigint(s) + @jit.elidable def toint(self): """ Get an integer from a bigint object. @@ -1603,7 +1604,7 @@ elif (base & (base - 1)) == 0: # JRH: special case for power-of-2 bases accum = 0 - accumbits = 0 # # of bits in accum + accumbits = 0 # # of bits in accum basebits = 1 # # of bits in base-1 i = base while 1: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit