Addition to Amos Bird changes #3920

This commit is contained in:
Alexey Milovidov 2019-01-08 17:55:37 +03:00
parent 2884b870b3
commit a594293b50
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ public:
nested_state += nested_size_of_data; nested_state += nested_size_of_data;
} }
offsets_to.push_back(offsets_to.empty() ? state.dynamic_array_size : offsets_to.back() + state.dynamic_array_size); offsets_to.push_back(offsets_to.back() + state.dynamic_array_size);
} }
bool allocatesMemoryInArena() const override bool allocatesMemoryInArena() const override

View File

@ -203,7 +203,7 @@ public:
for (size_t i = arr.size(); i < result_array_size; ++i) for (size_t i = arr.size(); i < result_array_size; ++i)
to_data.insert(default_value); to_data.insert(default_value);
to_offsets.push_back((to_offsets.empty() ? 0 : to_offsets.back()) + result_array_size); to_offsets.push_back(to_offsets.back() + result_array_size);
} }
const char * getHeaderFilePath() const override { return __FILE__; } const char * getHeaderFilePath() const override { return __FILE__; }