4 byte negative number is incorrect (too much is masked off)
The 2's complement conversion should use 0xFFFFFF similar to the 3 byte version in get_struct.c.
See the attached diff.
patch to fix negative 4 byte numbers
Log in to post a comment.
patch to fix negative 4 byte numbers