Skip to content

Commit

Permalink
LibC: Actually set the FPU environment instead of its pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
timschumi authored and awesomekling committed Apr 29, 2022
1 parent 7bf4a78 commit 89f9454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibC/fenv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 89f9454

Please sign in to comment.