Skip to content

Commit e7ff50f

Browse files
committed
[PythonKit] Updated code
1 parent 060e1c8 commit e7ff50f

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!.assign(from: ptr, count: scalarCount)
140+
buffPtr.baseAddress!.update(from: ptr, count: scalarCount)
141141
}
142142
}
143143
}

0 commit comments

Comments
 (0)