mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-01-12 15:59:52 -05:00
fix overflow
This commit is contained in:
parent
96ead7dba5
commit
ac6aa8f2eb
@ -74,7 +74,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn total_size(&self) -> usize {
|
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.descriptor.total_size()
|
||||||
+ self.record_data_size
|
+ self.record_data_size
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user