Explorar o código

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

Szabolcs Nagy %!s(int64=11) %!d(string=hai) anos
pai
achega
d684149910
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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