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 b99a449 commit 61a5eddCopy full SHA for 61a5edd
Sources/FoundationEssentials/FileManager/FileOperations+Enumeration.swift
@@ -168,6 +168,10 @@ struct _FTSSequence: Sequence {
168
169
state = [Optional(UnsafeMutablePointer(mutating: path)), nil].withUnsafeBufferPointer { dirList in
170
#if canImport(Android)
171
+ // The first parameter in `fts_open` in the Android NDK takes in a
172
+ // non-null char pointer, even though the last element in the array of pointers
173
+ // should be null. This cast resolves this nullability annotation that appears
174
+ // to be incorrect in the NDK.
175
let baseAddress = unsafeBitCast(dirList.baseAddress!, to: UnsafePointer<UnsafeMutablePointer<CChar>>.self)
176
#else
177
let baseAddress = dirList.baseAddress!
0 commit comments