Fix if char is signed type

This commit is contained in:
Pauli Nieminen 2008-07-05 00:06:41 +00:00
parent ff50691de9
commit eb8b0dc471

View file

@ -105,7 +105,7 @@ namespace {
const char escape_char = 1;
}
static bool needs_escaping(char c) { return c == 0 || c == escape_char || c == 13 || c == 254; }
static bool needs_escaping(char c) { return c == 0 || c == escape_char || c == 13 || c == static_cast<char>(254); }
static bool IsCR(const char& c)
{