Skip to content

Commit 27723db

Browse files
committed
Add static cast to fix buildkite error.
1 parent 08a918d commit 27723db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/ValueObject/DILParser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ namespace lldb_private::dil {
2929
std::string FormatDiagnostics(llvm::StringRef text, const std::string &message,
3030
uint32_t loc, uint16_t err_len) {
3131
DiagnosticDetail::SourceLocation sloc = {
32-
FileSpec{}, /*line=*/1, loc + 1, err_len, false, /*in_user_input=*/true};
32+
FileSpec{}, /*line=*/1, static_cast<uint16_t>(loc + 1),
33+
err_len, false, /*in_user_input=*/true};
3334
std::string arrow_str = "^";
3435
std::string rendered_msg =
3536
llvm::formatv("<user expression 0>:1:{0}: {1}\n 1 | {2}\n | ^",

0 commit comments

Comments
 (0)