diff options
author | Valentin <vakevk+git@gmail.com> | 2020-08-30 11:13:19 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-09-01 11:58:56 +0200 |
commit | 65abd4e92af497bbe1ae1085fa16b1b811a3c652 (patch) | |
tree | d233c2ec02dbe5685e241ea3417e3e9ba17a092a /tinywl/.gitignore | |
parent | 8b744412aab11fe4997367adf1a714ef2cb3946e (diff) |
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.
Diffstat (limited to 'tinywl/.gitignore')
0 files changed, 0 insertions, 0 deletions