diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2018-08-12 21:27:34 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2018-08-12 21:27:34 -0400 |
commit | e0c126dfc7b19f7681380b413e4793e94a85b065 (patch) | |
tree | cbd84b54f1ff54f7a23ac21963bc0e3df6cefbe3 /numpy/f2py | |
parent | a524915241deaccfb5b3dfba476b1799f457be77 (diff) | |
download | numpy-e0c126dfc7b19f7681380b413e4793e94a85b065.tar.gz |
Fix Fortran kind detection for aarch64 & s390x.
Diffstat (limited to 'numpy/f2py')
-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: |