Skip to content
  • Valentin's avatar
    Fix undefined behavior · 1ab6a818
    Valentin authored
    
    
    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>
    1ab6a818