Skip to content

Commit

Permalink
Fix runtime exceptions in Visual Studio environment. (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
dota17 authored Jul 23, 2020
1 parent bc9874c commit c2793a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/singledocparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/emitter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c2793a3

Please sign in to comment.