Skip to content

Commit 41dd1e7

Browse files
committed
Revert "[PythonKit] Updated code"
This reverts commit e7ff50f.
1 parent e7ff50f commit 41dd1e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonKit/NumpyConversion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ where Element : NumpyScalarCompatible {
137137
self.init(repeating: dummyPointer.move(), count: scalarCount)
138138
dummyPointer.deallocate()
139139
withUnsafeMutableBufferPointer { buffPtr in
140-
buffPtr.baseAddress!.update(from: ptr, count: scalarCount)
140+
buffPtr.baseAddress!.assign(from: ptr, count: scalarCount)
141141
}
142142
}
143143
}

0 commit comments

Comments
 (0)