summaryrefslogtreecommitdiff
path: root/numpy/core/function_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/function_base.py')
-rw-r--r--numpy/core/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py
index 7098b8b91..0415e16ac 100644
--- a/numpy/core/function_base.py
+++ b/numpy/core/function_base.py
@@ -339,7 +339,7 @@ def geomspace(start, stop, num=50, endpoint=True, dtype=None):
# complex and another is negative and log would produce NaN otherwise
start = start + (stop - stop)
stop = stop + (start - start)
- if _nx.issubdtype(dtype, complex):
+ if _nx.issubdtype(dtype, _nx.complexfloating):
start = start + 0j
stop = stop + 0j