forked from mirrors/jj
stacked_table: use u32::from_le_bytes() to reinterpret bytes as integer
Apparently, I forgot to update this in fb06e89649
.
This commit is contained in:
parent
6f5096e266
commit
21c22be96e
1 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue