Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdav authored and compnerd committed Sep 6, 2024
1 parent 11509ad commit 6fee761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PythonKit/NumpyConversion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ where Element : NumpyScalarCompatible {
self.init(repeating: dummyPointer.move(), count: scalarCount)
dummyPointer.deallocate()
withUnsafeMutableBufferPointer { buffPtr in
buffPtr.baseAddress!.assign(from: ptr, count: scalarCount)
buffPtr.baseAddress!.update(from: ptr, count: scalarCount)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/PythonKitTests/PythonFunctionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class PythonFunctionTests: XCTestCase {

// Example of function with no named parameters, which can be stated
// ergonomically using an underscore. The ignored input is a [PythonObject].
let testFunction = PythonFunction { _ in
let _ = PythonFunction { _ in
throw HelloWorldException("EXAMPLE ERROR MESSAGE", 2)
}.pythonObject

Expand Down

0 comments on commit 6fee761

Please sign in to comment.