Skip to content

Commit 6c64ad1

Browse files
committed
FIX: Use longdouble instead of float128 to be win32-safe
1 parent 8061909 commit 6c64ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/nifti1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ def _get_smallest_dtype(
22922292
>>> _get_smallest_dtype(np.array([1.]))
22932293
dtype('float32')
22942294
>>> _get_smallest_dtype(np.array([2. ** 1000]))
2295-
>>> _get_smallest_dtype(np.float128(2) ** 2000)
2295+
>>> _get_smallest_dtype(np.longdouble(2) ** 2000)
22962296
>>> _get_smallest_dtype(np.array([1+0j]))
22972297
"""
22982298
arr = np.asanyarray(arr)

0 commit comments

Comments
 (0)