-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
struc.Float16 does not work with slices #66
Comments
Can you try with this PR? #63 |
That gives me a |
To summarize: #63 does fix the broken behavior by explicit panic which is good. Op‘s original issue of slice of struct not supported remains. |
@lunixbochs wouldn‘t it make sense to merge #63? @13rac1 are you maintaining a fork intendend for public usage? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I have a format definition like this:
then upon unpacking (haven't checked if it affects packing as well),
Field
will parse two bytes (as expected), butFields
will wrongly try to parse 42 × 8 bytes (the size offloat64
whichstruc.Float16
equates to) instead of 42 × 2.The text was updated successfully, but these errors were encountered: