Skip to content

Commit

Permalink
Fix a -Wsign-compare error around wchar_t vs unsigned int.
Browse files Browse the repository at this point in the history
  • Loading branch information
echristo committed Dec 10, 2019
1 parent 59998b7 commit 53acf06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Host/common/Editline.cpp
Expand Up @@ -1484,7 +1484,7 @@ bool Editline::CompleteCharacter(char ch, EditLineGetCharType &out) {
switch (cvt.in(state, input.begin(), input.end(), from_next, &out, &out + 1,
to_next)) {
case std::codecvt_base::ok:
return out != WEOF;
return out != (int)WEOF;

case std::codecvt_base::error:
case std::codecvt_base::noconv:
Expand Down

0 comments on commit 53acf06

Please sign in to comment.