diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2014-05-02 18:53:53 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2014-05-02 18:53:53 +0000 |
commit | 6764b3e82a43bb1f8635c2841df76419d18919cc (patch) | |
tree | f3d5ee88b57e44e19fa0d2f1eaf76ee6212bb351 /lldb/source/Host | |
parent | 3ba81bdb45ad4a9ef603566a4ca222754649b43d (diff) | |
download | bcm5719-llvm-6764b3e82a43bb1f8635c2841df76419d18919cc.tar.gz bcm5719-llvm-6764b3e82a43bb1f8635c2841df76419d18919cc.zip |
EOF is outside the value range of char on architectures with unsigned
char like ARM. Check for EOF explicitly.
llvm-svn: 207859
Diffstat (limited to 'lldb/source/Host')
-rw-r--r-- | lldb/source/Host/common/Editline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp index 8374d7721ca..f38f70bc40a 100644 --- a/lldb/source/Host/common/Editline.cpp +++ b/lldb/source/Host/common/Editline.cpp @@ -794,7 +794,7 @@ Editline::GetCharFromInputFileCallback (EditLine *e, char *c) } } - if (ch == EOF) + if (status == eConnectionStatusEndOfFile) { editline->m_got_eof = true; break; |