[pypy-issue] [issue1578] Signed/unsigned confusion in the JIT tracer(?)

Armin Rigo tracker at bugs.pypy.org
Fri Aug 9 17:18:37 CEST 2013


New submission from Armin Rigo <armin.rigo at gmail.com>:

This fails, apparently when the JIT traces the loop (but not before, and not
after when running the generated piece of assembler, as shown by replacing the
"assert" with "print n").  The assert fails with "n == -2", which is the signed
version of the byte "254".

import numpypy as np
while 1:
    tree = np.empty(12, np.uint8)
    tree[2] = 254
    n = int(tree[2])
    assert n == 254, n

----------
messages: 6044
nosy: arigo, pypy-issue
priority: bug
status: unread
title: Signed/unsigned confusion in the JIT tracer(?)

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1578>
________________________________________


More information about the pypy-issue mailing list