Skip to content

Commit 13c84af

Browse files
kazutakahirataJDevlieghere
authored andcommitted
[lldb-dap] Fix a warning
This patch fixes: lldb/tools/lldb-dap/lldb-dap.cpp:1405:16: error: comparison of integers of different signs: 'int64_t' (aka 'long') and 'size_type' (aka 'unsigned long') [-Werror,-Wsign-compare] (cherry picked from commit e7a43ca)
1 parent 80cc883 commit 13c84af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/lldb-dap/lldb-dap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ void request_completions(const llvm::json::Object &request) {
14031403
// Handle the offset change introduced by stripping out the
14041404
// `command_escape_prefix`.
14051405
if (had_escape_prefix) {
1406-
if (offset < g_dap.command_escape_prefix.size()) {
1406+
if (offset < static_cast<int64_t>(g_dap.command_escape_prefix.size())) {
14071407
body.try_emplace("targets", std::move(targets));
14081408
response.try_emplace("body", std::move(body));
14091409
g_dap.SendJSON(llvm::json::Value(std::move(response)));

0 commit comments

Comments
 (0)