Selaa lähdekoodia

LibC: Actually set the FPU environment instead of its pointer

Tim Schumacher 3 vuotta sitten
vanhempi
commit
89f9454785
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Userland/Libraries/LibC/fenv.cpp

+ 1 - 1
Userland/Libraries/LibC/fenv.cpp

@@ -72,7 +72,7 @@ int fesetenv(fenv_t const* env)
         return 0;
     }
 
-    asm volatile("fldenv %0" ::"m"(env)
+    asm volatile("fldenv %0" ::"m"(env->__x87_fpu_env)
                  : "memory");
 
     set_mxcsr(env->__mxcsr);