[Lldb-commits] [lldb] r207859 - EOF is outside the value range of char on architectures with unsigned

Joerg Sonnenberger joerg at bec.de
Fri May 2 11:53:53 PDT 2014


Author: joerg
Date: Fri May  2 13:53:53 2014
New Revision: 207859

URL: http://llvm.org/viewvc/llvm-project?rev=207859&view=rev
Log:
EOF is outside the value range of char on architectures with unsigned
char like ARM. Check for EOF explicitly.

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

Modified: lldb/trunk/source/Host/common/Editline.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Editline.cpp?rev=207859&r1=207858&r2=207859&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Editline.cpp (original)
+++ lldb/trunk/source/Host/common/Editline.cpp Fri May  2 13:53:53 2014
@@ -794,7 +794,7 @@ Editline::GetCharFromInputFileCallback (
                     }
                 }
             
-                if (ch == EOF)
+                if (status == eConnectionStatusEndOfFile)
                 {
                     editline->m_got_eof = true;
                     break;





More information about the lldb-commits mailing list