From: Szabolcs Nagy Date: Sat, 17 Aug 2013 02:37:08 +0000 (+0000) Subject: fix i386 fesetenv: FE_DFL_ENV is (fenv_t*)-1 not 0 X-Git-Tag: v0.9.13~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d6841499109fc397cd3a57a726304fec9b08f510;p=oweals%2Fmusl.git fix i386 fesetenv: FE_DFL_ENV is (fenv_t*)-1 not 0 --- 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