mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 23:13:57 +00:00
Fixed compiler warning for int to char conversion.
Change-Id: Idc6c152ebf9e733ac72c01f3888b69e3b5f33aa9 Tested: on Linux.
This commit is contained in:
@@ -108,7 +108,7 @@ static std::string TokenToString(int t) {
|
|||||||
};
|
};
|
||||||
if (t < 256) { // A single ascii char token.
|
if (t < 256) { // A single ascii char token.
|
||||||
std::string s;
|
std::string s;
|
||||||
s.append(1, t);
|
s.append(1, static_cast<char>(t));
|
||||||
return s;
|
return s;
|
||||||
} else { // Other tokens.
|
} else { // Other tokens.
|
||||||
return tokens[t - 256];
|
return tokens[t - 256];
|
||||||
|
|||||||
Reference in New Issue
Block a user