aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/loadhigh.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/elflink/ldlinux/loadhigh.c')
-rw-r--r--com32/elflink/ldlinux/loadhigh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/elflink/ldlinux/loadhigh.c b/com32/elflink/ldlinux/loadhigh.c
index 0f2f8428..a13d58ff 100644
--- a/com32/elflink/ldlinux/loadhigh.c
+++ b/com32/elflink/ldlinux/loadhigh.c
@@ -54,8 +54,8 @@ void pm_load_high(com32sys_t *regs)
bytes = regs->eax.l;
zero_mask = regs->edx.w[0];
- buf = (char *)regs->edi.l;
- limit = (char *)(regs->ebp.l & ~zero_mask);
+ buf = (char *)(uintptr_t)regs->edi.l;
+ limit = (char *)(uintptr_t)(regs->ebp.l & ~zero_mask);
file = handle_to_file(regs->esi.w[0]);
fs = file->fs;