@@ -52,7 +52,7 @@ BridgedDiagnostic SwiftDiagnostic_create(void *diagnosticEngine,
52
52
BridgedDiagnosticSeverity severity,
53
53
const void *sourceLocPtr,
54
54
const unsigned char *textPtr,
55
- long textLen) {
55
+ SwiftInt textLen) {
56
56
StringRef origText{
57
57
reinterpret_cast <const char *>(textPtr), size_t (textLen)};
58
58
BridgedDiagnosticImpl::Allocator alloc;
@@ -99,7 +99,7 @@ void SwiftDiagnostic_fixItReplace(BridgedDiagnostic diagPtr,
99
99
const void *replaceStartLocPtr,
100
100
const void *replaceEndLocPtr,
101
101
const unsigned char *newTextPtr,
102
- long newTextLen) {
102
+ SwiftInt newTextLen) {
103
103
104
104
SourceLoc startLoc = getSourceLocFromPointer (replaceStartLocPtr);
105
105
SourceLoc endLoc = getSourceLocFromPointer (replaceEndLocPtr);
@@ -122,7 +122,7 @@ void SwiftDiagnostic_finish(BridgedDiagnostic diagPtr) {
122
122
123
123
BridgedIdentifier
124
124
SwiftASTContext_getIdentifier (void *ctx, const unsigned char *_Nullable str,
125
- long len) {
125
+ SwiftInt len) {
126
126
return const_cast <void *>(
127
127
static_cast <ASTContext *>(ctx)
128
128
->getIdentifier (
@@ -220,7 +220,7 @@ void *SwiftIdentifierExpr_create(void *ctx, BridgedIdentifier base, void *loc) {
220
220
221
221
void *SwiftStringLiteralExpr_create (void *ctx,
222
222
const unsigned char *_Nullable string,
223
- long len, void *TokenLoc) {
223
+ SwiftInt len, void *TokenLoc) {
224
224
ASTContext &Context = *static_cast <ASTContext *>(ctx);
225
225
auto stringRef = Context.AllocateCopy (
226
226
StringRef{reinterpret_cast <const char *>(string), size_t (len)});
@@ -230,7 +230,7 @@ void *SwiftStringLiteralExpr_create(void *ctx,
230
230
231
231
void *SwiftIntegerLiteralExpr_create (void *ctx,
232
232
const unsigned char *_Nullable string,
233
- long len, void *TokenLoc) {
233
+ SwiftInt len, void *TokenLoc) {
234
234
ASTContext &Context = *static_cast <ASTContext *>(ctx);
235
235
auto stringRef = Context.AllocateCopy (
236
236
StringRef{reinterpret_cast <const char *>(string), size_t (len)});
0 commit comments