From 28027a6a855c1401717663968a3e2fb30832f86c Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 4 May 2009 21:07:28 -0700 Subject: load_linux.c: quiet warning Quiet a (harmless) compiler warning. Signed-off-by: H. Peter Anvin --- com32/lib/syslinux/load_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'com32/lib/syslinux/load_linux.c') diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c index ffc0baae..37d396aa 100644 --- a/com32/lib/syslinux/load_linux.c +++ b/com32/lib/syslinux/load_linux.c @@ -486,7 +486,7 @@ int syslinux_boot_linux(void *kernel_buf, size_t kernel_size, regs.cs = (real_mode_base >> 4)+0x20; /* regs.ip = 0; */ /* Linux is OK with sp = 0 = 64K, but perhaps other things aren't... */ - regs.esp.w[0] = min(cmdline_offset, 0xfff0); + regs.esp.w[0] = min(cmdline_offset, (size_t)0xfff0); #if DEBUG dprintf("Final memory map:\n"); -- cgit v1.2.1