summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/sysdeps/linux/m68k/ptrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/m68k/ptrace.c b/libc/sysdeps/linux/m68k/ptrace.c
index 423be05e2..e595a6ecd 100644
--- a/libc/sysdeps/linux/m68k/ptrace.c
+++ b/libc/sysdeps/linux/m68k/ptrace.c
@@ -8,7 +8,8 @@ ptrace(int request, int pid, int addr, int data)
{
long ret;
long res;
- if (request > 0 && request < 4) (long *)data = &ret;
+ if (request > 0 && request < 4) data = (int)&ret;
+
__asm__ volatile ("movel %1,%/d0\n\t"
"movel %2,%/d1\n\t"