Skip to content

Commit e7a43ca

Browse files
[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]
1 parent c1343a2 commit e7a43ca

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
@@ -1402,7 +1402,7 @@ void request_completions(const llvm::json::Object &request) {
14021402
// Handle the offset change introduced by stripping out the
14031403
// `command_escape_prefix`.
14041404
if (had_escape_prefix) {
1405-
if (offset < g_dap.command_escape_prefix.size()) {
1405+
if (offset < static_cast<int64_t>(g_dap.command_escape_prefix.size())) {
14061406
body.try_emplace("targets", std::move(targets));
14071407
response.try_emplace("body", std::move(body));
14081408
g_dap.SendJSON(llvm::json::Value(std::move(response)));

0 commit comments

Comments
 (0)