Skip to content

Commit f0600f2

Browse files
authored
Update CASTBridging.cpp
1 parent 98039bc commit f0600f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/AST/CASTBridging.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ BridgedDiagnostic SwiftDiagnostic_create(void *diagnosticEngine,
5252
BridgedDiagnosticSeverity severity,
5353
const void *sourceLocPtr,
5454
const unsigned char *textPtr,
55-
long textLen) {
55+
SwiftInt textLen) {
5656
StringRef origText{
5757
reinterpret_cast<const char *>(textPtr), size_t(textLen)};
5858
BridgedDiagnosticImpl::Allocator alloc;
@@ -99,7 +99,7 @@ void SwiftDiagnostic_fixItReplace(BridgedDiagnostic diagPtr,
9999
const void *replaceStartLocPtr,
100100
const void *replaceEndLocPtr,
101101
const unsigned char *newTextPtr,
102-
long newTextLen) {
102+
SwiftInt newTextLen) {
103103

104104
SourceLoc startLoc = getSourceLocFromPointer(replaceStartLocPtr);
105105
SourceLoc endLoc = getSourceLocFromPointer(replaceEndLocPtr);
@@ -122,7 +122,7 @@ void SwiftDiagnostic_finish(BridgedDiagnostic diagPtr) {
122122

123123
BridgedIdentifier
124124
SwiftASTContext_getIdentifier(void *ctx, const unsigned char *_Nullable str,
125-
long len) {
125+
SwiftInt len) {
126126
return const_cast<void *>(
127127
static_cast<ASTContext *>(ctx)
128128
->getIdentifier(
@@ -220,7 +220,7 @@ void *SwiftIdentifierExpr_create(void *ctx, BridgedIdentifier base, void *loc) {
220220

221221
void *SwiftStringLiteralExpr_create(void *ctx,
222222
const unsigned char *_Nullable string,
223-
long len, void *TokenLoc) {
223+
SwiftInt len, void *TokenLoc) {
224224
ASTContext &Context = *static_cast<ASTContext *>(ctx);
225225
auto stringRef = Context.AllocateCopy(
226226
StringRef{reinterpret_cast<const char *>(string), size_t(len)});
@@ -230,7 +230,7 @@ void *SwiftStringLiteralExpr_create(void *ctx,
230230

231231
void *SwiftIntegerLiteralExpr_create(void *ctx,
232232
const unsigned char *_Nullable string,
233-
long len, void *TokenLoc) {
233+
SwiftInt len, void *TokenLoc) {
234234
ASTContext &Context = *static_cast<ASTContext *>(ctx);
235235
auto stringRef = Context.AllocateCopy(
236236
StringRef{reinterpret_cast<const char *>(string), size_t(len)});

0 commit comments

Comments
 (0)