Fixed compile errors in VS / gcc for recent commits.

Tested: on Windows & Linux.

Change-Id: I90e18c448fc2fafeb83a6cdc3776174479874562
This commit is contained in:
Wouter van Oortmerssen
2014-08-25 10:42:38 -07:00
parent 11b743688c
commit bc5fa9d52f
4 changed files with 22 additions and 17 deletions

View File

@@ -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.