Browse Source

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

Mike Frysinger 20 năm trước cách đây
mục cha
commit
44bb4a058b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
 }