Skip to content

Commit 79af0f7

Browse files
committed
..
1 parent 126fca0 commit 79af0f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_compat/numpy/_aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def floor(x: Array, /) -> Array:
162162
def trunc(x: Array, /) -> Array:
163163
if np.issubdtype(x.dtype, np.integer):
164164
if np.__version__ < '2':
165-
return x
165+
return x.copy()
166166
return np.trunc(x)
167167

168168

0 commit comments

Comments
 (0)