New submission from Armin Rigo <[email protected]>:

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 <[email protected]>
<https://bugs.pypy.org/issue1578>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to