Don't cast entry_addr to an int.

This commit is contained in:
gord committed 2001-03-28 17:22:34 +00:00
1 parent c610524eb0
commit 9e3e10d2c1
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ load_image (char *kernel, char *arg, kernel_t suggested_type,
else
entry_addr = (entry_func) (pu.elf->e_entry & 0xFFFFFF);
if (((int) entry_addr) < 0x100000)
if (entry_addr < (entry_func) 0x100000)
errnum = ERR_BELOW_1MB;
/* don't want to deal with ELF program header at some random