Fix bug in blob's.

This commit is contained in:
Stephen Chung
2021-12-07 19:03:04 +08:00
parent 5df2628eec
commit 4421f33b2c
4 changed files with 15 additions and 12 deletions

View File

@@ -637,7 +637,7 @@ impl<'a> Target<'a> {
let index = *index;
if index < value.len() {
value[index] = (new_byte & 0x000f) as u8;
value[index] = (new_byte & 0x00ff) as u8;
} else {
unreachable!("blob index out of bounds: {}", index);
}