fixed JSON testsuite errors and warnings with VS2012

This commit is contained in:
Guenter Obiltschnig
2012-10-14 15:51:23 +00:00
parent f5351b2f49
commit 2eb27b30b5
2 changed files with 5 additions and 5 deletions

View File

@@ -101,11 +101,11 @@ Var Query::find(const std::string& path) const
{
if ( firstOffset == -1 )
{
firstOffset = matches[0].offset;
firstOffset = static_cast<int>(matches[0].offset);
}
std::string num = token->substr(matches[1].offset, matches[1].length);
indexes.push_back(NumberParser::parse(num));
offset = matches[0].offset + matches[0].length;
offset = static_cast<int>(matches[0].offset + matches[0].length);
}
std::string name(*token);