mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 06:12:40 +00:00
Fixed compile warning with VS2012
flatbuffers\src\idl_parser.cpp(1516): warning C4244: 'argument' : conversion from 'int' to 'char', possible loss of data
This commit is contained in:
@@ -1513,7 +1513,7 @@ CheckedError Parser::SkipAnyJsonValue() {
|
|||||||
EXPECT(kTokenFloatConstant);
|
EXPECT(kTokenFloatConstant);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return Error(std::string("Unexpected token:") + std::string(1, token_));
|
return Error(std::string("Unexpected token:") + std::string(1, static_cast<char>(token_)));
|
||||||
}
|
}
|
||||||
return NoError();
|
return NoError();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user