From: Simon Glass Date: Mon, 26 Sep 2016 03:33:06 +0000 (-0600) Subject: bios_emulator: Fix cast for 64-bit compilation X-Git-Tag: v2016.11-rc2~11^2~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2cd11a23c8e01503032df34b99d563603a54f4d9;p=oweals%2Fu-boot.git bios_emulator: Fix cast for 64-bit compilation Fix a cast that causes warnings on 64-bit machines. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c index 77172467b2..2d5b5dc562 100644 --- a/drivers/bios_emulator/atibios.c +++ b/drivers/bios_emulator/atibios.c @@ -599,7 +599,7 @@ int biosemu_run(pci_dev_t pcidev, uchar *bios_rom, int bios_len, if (clean_up) { BE_exit(); if (vga_info->BIOSImage && - (u32)(vga_info->BIOSImage) != 0xc0000) + (ulong)(vga_info->BIOSImage) != 0xc0000) free(vga_info->BIOSImage); free(vga_info); vga_info = NULL;