Skip to content

Commit

Permalink
Fix CalcArrayType type declaration in C++
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Mar 8, 2020
1 parent a70a792 commit 185fac8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,10 @@ object CppCompiler extends LanguageCompilerStatic
case RawPointers => s"std::vector<${kaitaiType2NativeType(config, inType, absolute)}>*"
case UniqueAndRawPointers => s"std::unique_ptr<std::vector<${kaitaiType2NativeType(config, inType, absolute)}>>"
}
case CalcArrayType(inType) => s"std::vector<${kaitaiType2NativeType(config, inType, absolute)}>*"
case CalcArrayType(inType) => config.pointers match {
case RawPointers => s"std::vector<${kaitaiType2NativeType(config, inType, absolute)}>*"
case UniqueAndRawPointers => s"std::unique_ptr<std::vector<${kaitaiType2NativeType(config, inType, absolute)}>>"
}
case KaitaiStreamType => s"$kstreamName*"
case KaitaiStructType => config.pointers match {
case RawPointers => s"$kstructName*"
Expand Down

0 comments on commit 185fac8

Please sign in to comment.