Cast EOF to get a proper comparison.
authorJustin Hibbits <jrh29@alumni.cwru.edu>
Thu, 12 Feb 2015 05:31:46 +0000 (05:31 +0000)
committerJustin Hibbits <jrh29@alumni.cwru.edu>
Thu, 12 Feb 2015 05:31:46 +0000 (05:31 +0000)
commit3b2ce022f2365d995fc28f3a002ba4b40b8d7472
tree489950507c58c74f2a2208d25a6039891e8bd2d3
parent6cfc85a067b88e120443a7cd0f0eceea16ebaf22
Cast EOF to get a proper comparison.

On PowerPC, and maybe some other architectures, 'char' is unsigned.  Comparing
an unsigned char with a signed int (-1) is always false.  To fix this, down-cast
EOF to a char.

llvm-svn: 228909
lldb/source/Host/common/Editline.cpp