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.
JNIListener
1 parent 87455ce commit 1060ec5Copy full SHA for 1060ec5
Sources/AndroidBluetooth/JNI.swift
@@ -50,11 +50,7 @@ internal protocol JNIListener: AnyObject, JavaProtocol { }
50
internal extension JNIListener {
51
52
static fileprivate func recoverPointer( _ swiftObject: jlong, _ file: StaticString = #file, _ line: Int = #line ) -> uintptr_t {
53
- #if os(Android)
54
- let swiftPointer = uintptr_t(swiftObject&0xffffffff)
55
- #else
56
let swiftPointer = uintptr_t(swiftObject)
57
- #endif
58
if swiftPointer == 0 {
59
JNI.report( "Race condition setting swiftObject on Java Proxy. More thought required...", file, line )
60
}
0 commit comments