diff options
author | Kamil Rojewski <kamil.rojewski@gmail.com> | 2021-03-11 20:14:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 11:14:23 -0800 |
commit | 6543ba5297343986d9e059d05d6a17c81eefb205 (patch) | |
tree | 1c2bac8284124b9a13975b64d496447ffbf9ca63 /src | |
parent | 0e453ac3524100e7d78481d75e44ad3515dde0c1 (diff) | |
download | flatbuffers-6543ba5297343986d9e059d05d6a17c81eefb205.tar.gz flatbuffers-6543ba5297343986d9e059d05d6a17c81eefb205.tar.bz2 flatbuffers-6543ba5297343986d9e059d05d6a17c81eefb205.zip |
fixed packing structs in nested buffers (#6509)
Diffstat (limited to 'src')
-rw-r--r-- | src/idl_gen_ts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_ts.cpp b/src/idl_gen_ts.cpp index 89dd8c5b..a6d4ef6c 100644 --- a/src/idl_gen_ts.cpp +++ b/src/idl_gen_ts.cpp @@ -856,7 +856,7 @@ class TsGenerator : public BaseGenerator { const std::string field_accessor = "this." + field_name + "()"; field_val = GenNullCheckConditional(field_accessor, field_accessor + "!.unpack()"); - field_offset_val = GenNullCheckConditional( + field_offset_decl = GenNullCheckConditional( "this." + field_name, "this." + field_name + "!.pack(builder)", "0"); |