mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-05 21:17:25 +00:00
Fixed compile errors in VS / gcc for recent commits.
Tested: on Windows & Linux. Change-Id: I90e18c448fc2fafeb83a6cdc3776174479874562
This commit is contained in:
@@ -112,7 +112,8 @@ static void EscapeString(const String &s, std::string *_text) {
|
||||
// Parses as Unicode within JSON's \uXXXX range, so use that.
|
||||
text += "\\u";
|
||||
text += IntToStringHex(ucc, 4);
|
||||
i = utf8 - s.c_str() - 1; // Skip past characters recognized.
|
||||
// Skip past characters recognized.
|
||||
i = static_cast<uoffset_t>(utf8 - s.c_str() - 1);
|
||||
} else {
|
||||
// It's either unprintable ASCII, arbitrary binary, or Unicode data
|
||||
// that doesn't fit \uXXXX, so use \xXX escape code instead.
|
||||
|
||||
Reference in New Issue
Block a user