From d6841499109fc397cd3a57a726304fec9b08f510 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 17 Aug 2013 02:37:08 +0000 Subject: [PATCH] fix i386 fesetenv: FE_DFL_ENV is (fenv_t*)-1 not 0 --- src/fenv/i386/fenv.s | 4 ++-- 1 file 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 -- 2.25.1