linux/x86_64/get_error.c: do not sign-extend if no error happened
This commit is contained in:
parent
c2bacdd427
commit
8e4b24701a
@ -20,6 +20,9 @@ get_error(struct tcb *tcp, const bool check_errno)
|
||||
tcp->u_rval = -1;
|
||||
tcp->u_error = -rax;
|
||||
} else {
|
||||
tcp->u_rval = rax;
|
||||
if (x86_io.iov_len == sizeof(i386_regs))
|
||||
tcp->u_rval = (uint32_t) rax;
|
||||
else
|
||||
tcp->u_rval = rax;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user