Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
c2793a36
Unverified
Commit
c2793a36
authored
Jul 23, 2020
by
Chen
Committed by
GitHub
Jul 23, 2020
Browse files
Fix runtime exceptions in Visual Studio environment. (#926)
parent
bc9874c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/singledocparser.cpp
src/singledocparser.cpp
+1
-1
test/integration/emitter_test.cpp
test/integration/emitter_test.cpp
+1
-1
No files found.
src/singledocparser.cpp
View file @
c2793a36
...
@@ -48,7 +48,7 @@ void SingleDocParser::HandleDocument(EventHandler& eventHandler) {
...
@@ -48,7 +48,7 @@ void SingleDocParser::HandleDocument(EventHandler& eventHandler) {
}
}
void
SingleDocParser
::
HandleNode
(
EventHandler
&
eventHandler
)
{
void
SingleDocParser
::
HandleNode
(
EventHandler
&
eventHandler
)
{
DepthGuard
<
20
00
>
depthguard
(
depth
,
m_scanner
.
mark
(),
ErrorMsg
::
BAD_FILE
);
DepthGuard
<
5
00
>
depthguard
(
depth
,
m_scanner
.
mark
(),
ErrorMsg
::
BAD_FILE
);
// an empty node *is* a possibility
// an empty node *is* a possibility
if
(
m_scanner
.
empty
())
{
if
(
m_scanner
.
empty
())
{
...
...
test/integration/emitter_test.cpp
View file @
c2793a36
...
@@ -804,7 +804,7 @@ TEST_F(EmitterTest, OutputCharset) {
...
@@ -804,7 +804,7 @@ TEST_F(EmitterTest, OutputCharset) {
out
<<
"
\x24
\xC2\xA2
\xE2\x82\xAC
"
;
out
<<
"
\x24
\xC2\xA2
\xE2\x82\xAC
"
;
out
<<
EndSeq
;
out
<<
EndSeq
;
ExpectEmit
(
"-
$ ¢ €
\n
-
\"
$
\\
xa2
\\
u20ac
\"
"
);
ExpectEmit
(
"-
\x24
\xC2\xA2
\xE2\x82\xAC
\n
-
\"
\x24
\\
xa2
\\
u20ac
\"
"
);
}
}
TEST_F
(
EmitterTest
,
EscapedUnicode
)
{
TEST_F
(
EmitterTest
,
EscapedUnicode
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment