about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-08-17 02:37:08 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-08-18 16:27:20 +0000
commitd6841499109fc397cd3a57a726304fec9b08f510 (patch)
tree8beb48b32b17adba29fdd8cc89078905320b63b4
parent37c25065bec9170fe89453fb79ba6a478b8a5927 (diff)
downloadmusl-d6841499109fc397cd3a57a726304fec9b08f510.tar.gz
musl-d6841499109fc397cd3a57a726304fec9b08f510.tar.xz
musl-d6841499109fc397cd3a57a726304fec9b08f510.zip
fix i386 fesetenv: FE_DFL_ENV is (fenv_t*)-1 not 0
-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