summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-08-14 09:55:48 -0500
committerGitHub <noreply@github.com>2018-08-14 09:55:48 -0500
commit73d11ceb5e0fbbd98b3c2d0ab1d3042d09026c3d (patch)
treee15eb4fea17cb2189cb196051447c77f5992c537
parented35866c9fb5a25ba9368befebf3619575beaeb9 (diff)
parente0c126dfc7b19f7681380b413e4793e94a85b065 (diff)
downloadnumpy-73d11ceb5e0fbbd98b3c2d0ab1d3042d09026c3d.tar.gz
Merge pull request #11725 from QuLogic/selected-real-kind
BUG: Fix Fortran kind detection for aarch64 & s390x.
-rwxr-xr-xnumpy/f2py/crackfortran.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py
index 19ce8c145..99ff030e3 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -2403,7 +2403,7 @@ def _selected_real_kind_func(p, r=0, radix=0):
if p < 16:
return 8
machine = platform.machine().lower()
- if machine.startswith('power') or machine.startswith('ppc64'):
+ if machine.startswith(('aarch64', 'power', 'ppc64', 's390x')):
if p <= 20:
return 16
else: