diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-08-17 02:37:08 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-08-18 16:27:20 +0000 |
commit | d6841499109fc397cd3a57a726304fec9b08f510 (patch) | |
tree | 8beb48b32b17adba29fdd8cc89078905320b63b4 /src/fenv/i386 | |
parent | 37c25065bec9170fe89453fb79ba6a478b8a5927 (diff) | |
download | musl-d6841499109fc397cd3a57a726304fec9b08f510.tar.gz musl-d6841499109fc397cd3a57a726304fec9b08f510.tar.xz musl-d6841499109fc397cd3a57a726304fec9b08f510.zip |
fix i386 fesetenv: FE_DFL_ENV is (fenv_t*)-1 not 0
Diffstat (limited to 'src/fenv/i386')
-rw-r--r-- | src/fenv/i386/fenv.s | 4 |
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 |