Commit 2528a9c6 authored by serge-sans-paille's avatar serge-sans-paille Committed by Stefan Behnel

Fix 32-bit build compat for Pythran (GH-3032)

Pythran assumes shapes are shapes of long, whatever the underlying
architecture.
parent bc5ae161
......@@ -43,7 +43,7 @@ def pythran_type(Ty, ptype="ndarray"):
if pythran_is_pre_0_9:
return "pythonic::types::%s<%s,%d>" % (ptype,ctype, ndim)
else:
return "pythonic::types::%s<%s,pythonic::types::pshape<%s>>" % (ptype,ctype, ",".join(("Py_ssize_t",)*ndim))
return "pythonic::types::%s<%s,pythonic::types::pshape<%s>>" % (ptype,ctype, ",".join(("long",)*ndim))
if Ty.is_pythran_expr:
return Ty.pythran_type
#if Ty.is_none:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment