Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
2's complement 24->32 bits conversion #37
Comments
jfrey-xx
closed this
in c36abb5
Apr 4, 2017
|
Wow, nice catch! Thanks for the fix, it's committed now :) |
atom2626
commented
Apr 4, 2017
|
No problem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
atom2626 commentedApr 2, 2017
•
edited
I borrowed your implementation of conv24bitsToInt (referenced your name/work)
However I think:
if (unpacked[0] >= 127):
Should be replaced by
if (unpacked[0] > 127):
as 127 is written 0111 1111, sign bit is off.