]> git.ipfire.org Git - thirdparty/grub.git/commit
types: Add missing casts in compile-time byteswaps
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 16 May 2024 19:22:58 +0000 (22:22 +0300)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 6 Jun 2024 14:55:16 +0000 (16:55 +0200)
commit2ffc14ba950209e049cebdcae9cdb7dafc046865
tree5cf9fbf0957faeb902c50586f8e36c1cb1207c13
parentc6ac4912043c2b21ecd790a2a06e7557cda25449
types: Add missing casts in compile-time byteswaps

Without them, e.g., 0x80LL on 64-bit target is 32-bit byte-swapped to
0xffffffff80000000 instead of correct 0x80000000.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/types.h