fix overflow

This commit is contained in:
John Smith 2023-12-06 19:47:42 -05:00 committed by Christien Rioux
parent 96ead7dba5
commit ac6aa8f2eb

View File

@ -74,7 +74,7 @@ where
}
pub fn total_size(&self) -> usize {
(mem::size_of::<Self>() - mem::size_of::<SignedValueDescriptor>())
(mem::size_of::<Self>() - mem::size_of::<Arc<SignedValueDescriptor>>())
+ self.descriptor.total_size()
+ self.record_data_size
}