Skip to content
Snippets Groups Projects
Commit 8e40902d authored by Wouter van Oortmerssen's avatar Wouter van Oortmerssen
Browse files

Fixed compiler warning for int to char conversion.

Change-Id: Idc6c152ebf9e733ac72c01f3888b69e3b5f33aa9
Tested: on Linux.
parent bc5fa9d5
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment