We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9c17b1 commit 536d836Copy full SHA for 536d836
include/simfil/model/arena.h
@@ -122,7 +122,7 @@ class ArrayArena
122
* @return The current size, in bytes, of the array arena if serialized.
123
*/
124
[[nodiscard]] size_t byte_size() const {
125
- if (compactHeads_) {
+ if (heads_.empty() && compactHeads_) {
126
return compactHeads_->byte_size() + data_.byte_size();
127
}
128
auto result = heads_.size() * sizeof(CompactArrayChunk);
0 commit comments