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()) {