mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-15 07:51:46 +00:00
fix range
This commit is contained in:
@ -30,7 +30,7 @@ impl<'a, B: 'a> CheckedRegion<'a, B> where B: ::std::ops::Deref<Target=Vec<u8>>
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn slice(&self) -> &[u8] {
|
fn slice(&self) -> &[u8] {
|
||||||
&*self.buffer
|
&self.buffer[self.range()]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user