Fix undefined behavior
authorValentin <vakevk+git@gmail.com>
Fri, 4 Sep 2020 10:15:03 +0000 (12:15 +0200)
committerValentin <vakevk+git@gmail.com>
Fri, 4 Sep 2020 10:27:33 +0000 (12:27 +0200)
commit1ab6a81816f52c17be2138ba569256b5afc029f2
tree7bab6d7d1d36eb32538ae8e0b4a6ff5280b36c84
parentfc3beac71f631fb16ee2257e9a6c9ec07cd0c90d
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: Valentin Kettner <vakevk@gmail.com>
cursor/xcursor.c