-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add try_from_iter for *MemoryRegion and *RegisterData #34
base: master
Are you sure you want to change the base?
Conversation
75c1622
to
53fb533
Compare
Ah yeah, CI is broken. We can ignore macos and windows. |
de801df
to
cefd41e
Compare
@diondokter please validate carefully if the new |
core/src/register_data.rs
Outdated
// 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)); | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
cefd41e
to
fd488dd
Compare
See #33