summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-01-05 13:23:28 -0700
committerCharles Harris <charlesr.harris@gmail.com>2019-01-05 13:23:28 -0700
commit4ff8fd5462fa1aaafc9b3519dfca0892f01e977e (patch)
tree9e593884798d6955e008040ce07fb8df6d347b85
parentfd89a4137969b676d4449e2b61ecd7f4c5811d7a (diff)
downloadnumpy-4ff8fd5462fa1aaafc9b3519dfca0892f01e977e.tar.gz
BUG: Add 'sparc' to platforms implementing 16 byte reals.
This is for the _selected_real_kind_func function in f2py/crackfortran.py
-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 2620fc9b7..c4a650585 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -2399,7 +2399,7 @@ def _selected_real_kind_func(p, r=0, radix=0):
if p < 16:
return 8
machine = platform.machine().lower()
- if machine.startswith(('aarch64', 'power', 'ppc64', 's390x')):
+ if machine.startswith(('aarch64', 'power', 'ppc64', 's390x', 'sparc')):
if p <= 20:
return 16
else: