Fix runtime exceptions in Visual Studio environment. (#926)

This commit is contained in:
Chen
2020-07-23 21:48:20 +08:00
committed by GitHub
parent bc9874c9ff
commit c2793a36d5
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ void SingleDocParser::HandleDocument(EventHandler& eventHandler) {
}
void SingleDocParser::HandleNode(EventHandler& eventHandler) {
DepthGuard<2000> depthguard(depth, m_scanner.mark(), ErrorMsg::BAD_FILE);
DepthGuard<500> depthguard(depth, m_scanner.mark(), ErrorMsg::BAD_FILE);
// an empty node *is* a possibility
if (m_scanner.empty()) {

View File

@@ -804,7 +804,7 @@ TEST_F(EmitterTest, OutputCharset) {
out << "\x24 \xC2\xA2 \xE2\x82\xAC";
out << EndSeq;
ExpectEmit("- $ ¢ €\n- \"$ \\xa2 \\u20ac\"");
ExpectEmit("- \x24 \xC2\xA2 \xE2\x82\xAC\n- \"\x24 \\xa2 \\u20ac\"");
}
TEST_F(EmitterTest, EscapedUnicode) {