Skip to content
Commit 1ab6a818 authored by Valentin's avatar Valentin
Browse files

Fix undefined behavior



Without the casts the bytes accesses get converted to int. but int is
not guaranteed to be 4 bytes large. Even when it is 4 bytes large
`bytes[3] << 24` does not fit because int is signed.

Signed-off-by: default avatarValentin Kettner <vakevk@gmail.com>
parent fc3beac7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment