New issue 1940: changeset 68c97410a30e causes segfault in numpypy casting 
float->int8
https://bitbucket.org/pypy/pypy/issue/1940/changeset-68c97410a30e-causes-segfault-in

mattip:

The following works pre-`68c97410a30e`, fails after

    import _numpypy.multiarray as np
    b = np.arange(1500).astype('int8')

I tried writing a test in micronumpy/test/test_zjit , but it passes.
Note I could not find a way to cast `W_Int8Box.value` back to float line 32 
correctly even before the changeset, but that does not seem to be the issue 
here.
Here is the diff for the test 
[https://gist.github.com/mattip/e0cea71ee0102ac375fb](https://gist.github.com/mattip/e0cea71ee0102ac375fb)


_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to