X9D+ conversion unit test + fixes

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:02 +01:00
parent 17d4ea5c62
commit c749fd8681
5 changed files with 67 additions and 13 deletions
+2 -1
View File
@@ -89,7 +89,8 @@ class YamlTreeWalker
}
inline bool isParentArrayElmt() {
return !empty() && stack[stack_level + 1].flags & FLAG_STATE_ARRAY_ELMT;
return (stack_level + 1 < NODE_STACK_DEPTH)
&& stack[stack_level + 1].flags & FLAG_STATE_ARRAY_ELMT;
}
inline void setArrayElmt(bool set) {