Fixed compiler warning for int to char conversion.

Change-Id: Idc6c152ebf9e733ac72c01f3888b69e3b5f33aa9
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen 2014-09-02 17:32:12 -07:00
parent bc5fa9d52f
commit 8e40902d52
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ static std::string TokenToString(int t) {
};
if (t < 256) { // A single ascii char token.
std::string s;
s.append(1, t);
s.append(1, static_cast<char>(t));
return s;
} else { // Other tokens.
return tokens[t - 256];