Browse Source

dont invert errno as assembly routines store positive values, not negative ones

Mike Frysinger 19 years ago
parent
commit
44bb4a058b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/ia64/__syscall_error.c

+ 1 - 1
libc/sysdeps/linux/ia64/__syscall_error.c

@@ -14,6 +14,6 @@ int __syscall_error(void) attribute_hidden;
 int __syscall_error(void)
 {
 	register int err_no asm("%r8");
-	__set_errno(-err_no);
+	__set_errno(err_no);
 	return -1;
 }