Skip to content

Commit c2793a3

Browse files
authored
Fix runtime exceptions in Visual Studio environment. (jbeder#926)
1 parent bc9874c commit c2793a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/singledocparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void SingleDocParser::HandleDocument(EventHandler& eventHandler) {
4848
}
4949

5050
void SingleDocParser::HandleNode(EventHandler& eventHandler) {
51-
DepthGuard<2000> depthguard(depth, m_scanner.mark(), ErrorMsg::BAD_FILE);
51+
DepthGuard<500> depthguard(depth, m_scanner.mark(), ErrorMsg::BAD_FILE);
5252

5353
// an empty node *is* a possibility
5454
if (m_scanner.empty()) {

test/integration/emitter_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ TEST_F(EmitterTest, OutputCharset) {
804804
out << "\x24 \xC2\xA2 \xE2\x82\xAC";
805805
out << EndSeq;
806806

807-
ExpectEmit("- $ ¢ €\n- \"$ \\xa2 \\u20ac\"");
807+
ExpectEmit("- \x24 \xC2\xA2 \xE2\x82\xAC\n- \"\x24 \\xa2 \\u20ac\"");
808808
}
809809

810810
TEST_F(EmitterTest, EscapedUnicode) {

0 commit comments

Comments
 (0)