We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 060e1c8 commit e7ff50fCopy full SHA for e7ff50f
PythonKit/NumpyConversion.swift
@@ -137,7 +137,7 @@ where Element : NumpyScalarCompatible {
137
self.init(repeating: dummyPointer.move(), count: scalarCount)
138
dummyPointer.deallocate()
139
withUnsafeMutableBufferPointer { buffPtr in
140
- buffPtr.baseAddress!.assign(from: ptr, count: scalarCount)
+ buffPtr.baseAddress!.update(from: ptr, count: scalarCount)
141
}
142
143
0 commit comments