mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-06 02:43:23 +00:00
14 lines
648 B
Diff
14 lines
648 B
Diff
diff --git a/swift/include/swift/Basic/BridgingUtils.h b/swift/include/swift/Basic/BridgingUtils.h
|
|
index bd8fe2e6a06..55e962f2ec3 100644
|
|
--- a/swift/include/swift/Basic/BridgingUtils.h
|
|
+++ b/swift/include/swift/Basic/BridgingUtils.h
|
|
@@ -54,7 +54,7 @@ getCharSourceRange(const BridgedCharSourceRange &bridged) {
|
|
inline BridgedCharSourceRange
|
|
getBridgedCharSourceRange(const CharSourceRange &range) {
|
|
auto start = getBridgedSourceLoc(range.getStart());
|
|
- return {start, range.getByteLength()};
|
|
+ return {start, static_cast<SwiftInt>(range.getByteLength())};
|
|
}
|
|
|
|
/// Copies the string in an malloc'ed memory and the caller is responsible for
|