Skip to content

Conversation

hdoordt
Copy link

@hdoordt hdoordt commented Aug 24, 2023

See #33

@hdoordt hdoordt marked this pull request as draft August 24, 2023 07:40
@hdoordt hdoordt force-pushed the fallible-memory-init branch from 75c1622 to 53fb533 Compare August 24, 2023 07:47
@diondokter
Copy link
Member

Ah yeah, CI is broken. We can ignore macos and windows.

@hdoordt hdoordt force-pushed the fallible-memory-init branch from de801df to cefd41e Compare August 24, 2023 08:49
@hdoordt hdoordt requested a review from diondokter August 24, 2023 08:52
@hdoordt hdoordt marked this pull request as ready for review August 24, 2023 08:52
@hdoordt
Copy link
Author

hdoordt commented Aug 24, 2023

@diondokter please validate carefully if the new try_from_iter methods actually never panic.

Comment on lines 136 to 139
// Check that all register bytes will fit in `registers`
let num_register_bytes = register_count as usize * register_size;
if num_register_bytes > SIZE {
return Err(LengthTooBig(register_count, register_size));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests fail. I think it's because SIZE here is the amount of registers and not the byte count of the registers

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@diondokter tests should be fixed now. Thanks for having a look!

@hdoordt hdoordt force-pushed the fallible-memory-init branch from cefd41e to fd488dd Compare September 20, 2023 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants