diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-08-14 09:55:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 09:55:48 -0500 |
commit | 73d11ceb5e0fbbd98b3c2d0ab1d3042d09026c3d (patch) | |
tree | e15eb4fea17cb2189cb196051447c77f5992c537 | |
parent | ed35866c9fb5a25ba9368befebf3619575beaeb9 (diff) | |
parent | e0c126dfc7b19f7681380b413e4793e94a85b065 (diff) | |
download | numpy-73d11ceb5e0fbbd98b3c2d0ab1d3042d09026c3d.tar.gz |
Merge pull request #11725 from QuLogic/selected-real-kind
BUG: Fix Fortran kind detection for aarch64 & s390x.
-rwxr-xr-x | numpy/f2py/crackfortran.py | 2 |
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: |