Didn't take care of errors when return parameter was long long.
Bug pointed out by Arne Henrik Juul.
This commit is contained in:
parent
fff3137419
commit
c6813ecb89
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
||||||
/* .asciz "@(#)cerror.s 8.1 (Berkeley) 6/4/93" */
|
/* .asciz "@(#)cerror.s 8.1 (Berkeley) 6/4/93" */
|
||||||
.asciz "$NetBSD: cerror.S,v 1.1 1995/04/17 12:23:59 ragge Exp $"
|
.asciz "$NetBSD: cerror.S,v 1.2 1995/12/04 21:52:44 ragge Exp $"
|
||||||
#endif /* SYSLIBC_SCCS and not lint */
|
#endif /* SYSLIBC_SCCS and not lint */
|
||||||
|
|
||||||
#include "SYS.h"
|
#include "SYS.h"
|
||||||
|
@ -42,4 +42,5 @@
|
||||||
cerror:
|
cerror:
|
||||||
movl r0,_errno
|
movl r0,_errno
|
||||||
mnegl $1,r0
|
mnegl $1,r0
|
||||||
|
mnegl $1,r1
|
||||||
ret
|
ret
|
||||||
|
|
Loading…
Reference in New Issue