Skip to content

Commit

Permalink
[lldb-dap] Fix a warning
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
kazutakahirata committed Oct 3, 2024
1 parent c1343a2 commit e7a43ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/tools/lldb-dap/lldb-dap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ void request_completions(const llvm::json::Object &request) {
// Handle the offset change introduced by stripping out the
// `command_escape_prefix`.
if (had_escape_prefix) {
if (offset < g_dap.command_escape_prefix.size()) {
if (offset < static_cast<int64_t>(g_dap.command_escape_prefix.size())) {
body.try_emplace("targets", std::move(targets));
response.try_emplace("body", std::move(body));
g_dap.SendJSON(llvm::json::Value(std::move(response)));
Expand Down

0 comments on commit e7a43ca

Please sign in to comment.