Skip to content

Commit 42bbeb3

Browse files
author
benoit
committed
fix deprecated method renamed "update(from:count:)"
1 parent 2b95d73 commit 42bbeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Numerics/NDimensionalArray.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ extension NDimensionalArray {
159159
let enableMemCopy = variant != .swiftPointerNoMemCopy
160160

161161
if enableMemCopy && pfrom.stride == 1 && pself.stride == 1 {
162-
pself.base.assign(from: pfrom.base, count: pself.count)
162+
pself.base.update(from: pfrom.base, count: pself.count)
163163
} else {
164164
// let fptr = pfrom.base, sptr = pself.base
165165
// let fstr = pfrom.stride, sstr = pself.stride

0 commit comments

Comments
 (0)