projects
/
platform
/
upstream
/
flatbuffers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5fa9d
)
Fixed compiler warning for int to char conversion.
author
Wouter van Oortmerssen
<wvo@google.com>
Wed, 3 Sep 2014 00:32:12 +0000
(17:32 -0700)
committer
Wouter van Oortmerssen
<wvo@google.com>
Wed, 3 Sep 2014 00:32:12 +0000
(17:32 -0700)
Change-Id: Idc6c152ebf9e733ac72c01f3888b69e3b5f33aa9
Tested: on Linux.
src/idl_parser.cpp
patch
|
blob
|
history
diff --git
a/src/idl_parser.cpp
b/src/idl_parser.cpp
index
bf550df
..
37ff146
100644
(file)
--- a/
src/idl_parser.cpp
+++ b/
src/idl_parser.cpp
@@
-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];