Commit 3bb63155 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 f5447b76
...@@ -43,7 +43,7 @@ def pythran_type(Ty, ptype="ndarray"): ...@@ -43,7 +43,7 @@ def pythran_type(Ty, ptype="ndarray"):
if pythran_is_pre_0_9: if pythran_is_pre_0_9:
return "pythonic::types::%s<%s,%d>" % (ptype,ctype, ndim) return "pythonic::types::%s<%s,%d>" % (ptype,ctype, ndim)
else: 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: if Ty.is_pythran_expr:
return Ty.pythran_type return Ty.pythran_type
#if Ty.is_none: #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