fix i386 fesetenv: FE_DFL_ENV is (fenv_t*)-1 not 0
authorSzabolcs Nagy <nsz@port70.net>
Sat, 17 Aug 2013 02:37:08 +0000 (02:37 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sun, 18 Aug 2013 16:27:20 +0000 (16:27 +0000)
src/fenv/i386/fenv.s

index e365b8f..471d2af 100644 (file)
@@ -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