Use u64::from
This commit is contained in:
parent
d8b5d0d948
commit
75ace3106b
|
@ -96,7 +96,7 @@ impl VocFile {
|
|||
};
|
||||
|
||||
let current_address = file.stream_position().unwrap();
|
||||
let block_end_address = current_address + block_size as u64;
|
||||
let block_end_address = current_address + u64::from(block_size);
|
||||
|
||||
let block: Box<dyn Block> = match block_type {
|
||||
BlockType::Terminator => Box::new(Terminator::from_stream(
|
||||
|
|
Loading…
Reference in New Issue