From: Jan Kiszka <[email protected]> Properly type-casting their results to 16-bit improves readability. No functional change, all consumers already did this type-cast implicitly.
Signed-off-by: Jan Kiszka <[email protected]> --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index b11c5fb..68e4eff 100644 --- a/main.c +++ b/main.c @@ -27,8 +27,8 @@ extern const unsigned long init_array_start[]; extern const unsigned long init_array_end[]; extern CHAR16 *boot_medium_path; -#define PCI_GET_VENDOR_ID(id) id -#define PCI_GET_PRODUCT_ID(id) id >> 16 +#define PCI_GET_VENDOR_ID(id) (UINT16)(id) +#define PCI_GET_PRODUCT_ID(id) (UINT16)((id) >> 16) static EFI_STATUS probe_watchdogs(EFI_LOADED_IMAGE *loaded_image, UINTN timeout) { -- 2.34.1 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/1cf5f3f7-374b-4f47-3336-3621df12b486%40siemens.com.
