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 a8bad23 commit 99b2391Copy full SHA for 99b2391
lib/ASTGen/Sources/ASTGen/Generics.swift
@@ -19,7 +19,7 @@ extension ASTGenVisitor {
19
func visit(_ node: GenericParameterSyntax) -> ASTNode {
20
var nodeName = node.name.text
21
let name = nodeName.withUTF8 { buf in
22
- return SwiftASTContext_getIdentifier(ctx, buf.baseAddress, buf.count)
+ return SwiftASTContext_getIdentifier(ctx, buf.baseAddress, SwiftInt(buf.count))
23
}
24
let nameLoc = self.base.advanced(by: node.name.position.utf8Offset).raw
25
let eachLoc = node.each.map { self.base.advanced(by: $0.position.utf8Offset).raw }
0 commit comments