mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-24 23:09:25 -05:00
fix overflow
This commit is contained in:
parent
96ead7dba5
commit
ac6aa8f2eb
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user