mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-08-22 15:05:26 +00:00
fix build error in swift 5.10
This commit is contained in:
@ -54,7 +54,7 @@ struct LOUDS: Sendable {
|
||||
}
|
||||
return flatChar2nodeIndices
|
||||
}
|
||||
self.flatChar2nodeIndicesIndex = consume flatChar2nodeIndicesIndex
|
||||
self.flatChar2nodeIndicesIndex = flatChar2nodeIndicesIndex
|
||||
|
||||
var rankLarge: [UInt32] = .init(repeating: 0, count: bytes.count + 1)
|
||||
rankLarge.withUnsafeMutableBufferPointer { buffer in
|
||||
@ -62,7 +62,7 @@ struct LOUDS: Sendable {
|
||||
buffer[i + 1] = buffer[i] &+ UInt32(Self.unit &- byte.nonzeroBitCount)
|
||||
}
|
||||
}
|
||||
self.rankLarge = consume rankLarge
|
||||
self.rankLarge = rankLarge
|
||||
}
|
||||
|
||||
/// parentNodeIndex個の0を探索し、その次から1個増えるまでのIndexを返す。
|
||||
|
@ -55,7 +55,7 @@ extension InputGraphProtocol {
|
||||
mutating func insert(_ node: Node, connection: InputGraphStructure.Connection = .none) -> Int {
|
||||
var nodes = self.nodes
|
||||
let index = self.structure.insert(node, nodes: &nodes, displayedTextRange: node.displayedTextRange, inputElementsRange: node.inputElementsRange, connection: connection)
|
||||
self.nodes = consume nodes
|
||||
self.nodes = nodes
|
||||
return index
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user