summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/sys
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/amd64/sys')
-rw-r--r--lib/libc/amd64/sys/cerror.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/amd64/sys/cerror.S b/lib/libc/amd64/sys/cerror.S
index f9f4da0..fa28eca 100644
--- a/lib/libc/amd64/sys/cerror.S
+++ b/lib/libc/amd64/sys/cerror.S
@@ -55,7 +55,7 @@ HIDENAME(cerror):
pushq %rax
call PIC_PLT(CNAME(__error))
popq %rcx
- movq %rcx,(%rax)
+ movl %ecx,(%rax)
movq $-1,%rax
movq $-1,%rdx
ret
OpenPOWER on IntegriCloud