Skip to content

Commit 99b2391

Browse files
authored
Update Generics.swift
1 parent a8bad23 commit 99b2391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ASTGen/Sources/ASTGen/Generics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extension ASTGenVisitor {
1919
func visit(_ node: GenericParameterSyntax) -> ASTNode {
2020
var nodeName = node.name.text
2121
let name = nodeName.withUTF8 { buf in
22-
return SwiftASTContext_getIdentifier(ctx, buf.baseAddress, buf.count)
22+
return SwiftASTContext_getIdentifier(ctx, buf.baseAddress, SwiftInt(buf.count))
2323
}
2424
let nameLoc = self.base.advanced(by: node.name.position.utf8Offset).raw
2525
let eachLoc = node.each.map { self.base.advanced(by: $0.position.utf8Offset).raw }

0 commit comments

Comments
 (0)