mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
Fix failing decode test
This commit is contained in:
@@ -83,7 +83,7 @@ impl<'a> SszDecoderBuilder<'a> {
|
|||||||
|
|
||||||
if previous_offset > offset {
|
if previous_offset > offset {
|
||||||
return Err(DecodeError::OutOfBoundsByte { i: offset });
|
return Err(DecodeError::OutOfBoundsByte { i: offset });
|
||||||
} else if offset >= self.bytes.len() {
|
} else if offset > self.bytes.len() {
|
||||||
return Err(DecodeError::OutOfBoundsByte { i: offset });
|
return Err(DecodeError::OutOfBoundsByte { i: offset });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user