about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/fenv/i386/fenv.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fenv/i386/fenv.s b/src/fenv/i386/fenv.s
index e365b8f4..471d2af8 100644
--- a/src/fenv/i386/fenv.s
+++ b/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