Skip to content

Commit

Permalink
C++: accept non-null _root arg in the top-level type
Browse files Browse the repository at this point in the history
Fixes the NavRootRecursive test for `cpp_stl_11` and `cpp_stl_98` -
see kaitai-io/kaitai_struct_tests@5941262e78
  • Loading branch information
generalmimon committed Apr 4, 2024
1 parent 751f059 commit 7fd4402
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class CppCompiler(

handleAssignmentSimple(ParentIdentifier, pParent)
handleAssignmentSimple(RootIdentifier, if (name == rootClassName) {
"this"
s"${pRoot} ? ${pRoot} : this"
} else {
pRoot
})
Expand Down

0 comments on commit 7fd4402

Please sign in to comment.