mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-14 11:44:27 +00:00
stacked_table: use u32::from_le_bytes() to reinterpret bytes as integer
Apparently, I forgot to update this in fb06e8964902.
This commit is contained in:
parent
6f5096e266
commit
21c22be96e
@ -182,9 +182,7 @@ impl<'table> ReadonlyTableIndexEntry<'table> {
|
||||
}
|
||||
|
||||
fn value_offset(&self) -> usize {
|
||||
(&self.data[self.data.len() - 4..self.data.len()])
|
||||
.read_u32::<LittleEndian>()
|
||||
.unwrap() as usize
|
||||
u32::from_le_bytes(self.data[self.data.len() - 4..].try_into().unwrap()) as usize
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user