Fixed endian stuffs

soft-float
Erin 2023-07-25 19:10:00 +02:00
parent b3a6c42af3
commit a82686ec07
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ pub fn validate(mut program: &[u8]) -> Result<(), Error> {
[] => return Ok(()),
[LD..=ST, reg, _, _, _, _, _, _, _, _, count_0, count_1, ..]
if usize::from(*reg) * 8
+ usize::from(u16::from_le_bytes([*count_0, *count_1]))
+ usize::from(u16::from_le_bytes([*count_1, *count_0]))
> 2048 =>
{
return Err(Error {