[Lldb-commits] [lldb] 53acf06 - Fix a -Wsign-compare error around wchar_t vs unsigned int.

Eric Christopher via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 10 11:19:07 PST 2019


Author: Eric Christopher
Date: 2019-12-10T11:18:57-08:00
New Revision: 53acf0663f80e1be99bae28769c6b658fff0e097

URL: https://github.com/llvm/llvm-project/commit/53acf0663f80e1be99bae28769c6b658fff0e097
DIFF: https://github.com/llvm/llvm-project/commit/53acf0663f80e1be99bae28769c6b658fff0e097.diff

LOG: Fix a -Wsign-compare error around wchar_t vs unsigned int.

Added: 
    

Modified: 
    lldb/source/Host/common/Editline.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp
index b29c218f0369..5fd5a0cfc7fc 100644
--- a/lldb/source/Host/common/Editline.cpp
+++ b/lldb/source/Host/common/Editline.cpp
@@ -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:


        


More information about the lldb-commits mailing list