Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdav committed Aug 28, 2024
1 parent a0ea9dd commit 0dde55f
Show file tree
Hide file tree
Showing 3 changed files with 3 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
1 change: 1 addition & 0 deletions temp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Contents

0 comments on commit 0dde55f

Please sign in to comment.