Skip to content

Commit 2727b6c

Browse files
committed
aarch64: use void pointer for first register assignment
this works around header compatibility problems with glibc. closes #73 Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
1 parent 05e10b7 commit 2727b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/aarch64/makecontext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
4545

4646
va_start(va, argc);
4747

48-
regp = &(ucp->uc_mcontext.regs[0]);
48+
regp = (void *) &(ucp->uc_mcontext.regs[0]);
4949

5050
for (i = 0; (i < argc && i < 8); i++)
5151
*regp++ = va_arg (va, unsigned long);

0 commit comments

Comments
 (0)