Selaa lähdekoodia

fix i386 fesetenv: FE_DFL_ENV is (fenv_t*)-1 not 0

Szabolcs Nagy 11 vuotta sitten
vanhempi
sitoutus
d684149910
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/fenv/i386/fenv.s

+ 2 - 2
src/fenv/i386/fenv.s

@@ -66,9 +66,9 @@ fegetenv:
 fesetenv:
 	mov 4(%esp),%ecx
 	xor %eax,%eax
-	test %ecx,%ecx
+	inc %ecx
 	jz 1f
-	fldenv (%ecx)
+	fldenv -1(%ecx)
 	ret
 1:	push %eax
 	push %eax