summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-04-29 21:36:51 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-29 22:01:06 +0200
commit89f94547856717028cbe4f59ebfc74386d74e555 (patch)
tree90d37d11a591e0effca9210bc0855d382e0286e6 /Userland/Libraries
parent7bf4a785c68625e2b149c687034f438c6d3f64a8 (diff)
downloadserenity-89f94547856717028cbe4f59ebfc74386d74e555.zip
LibC: Actually set the FPU environment instead of its pointer
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibC/fenv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/fenv.cpp b/Userland/Libraries/LibC/fenv.cpp
index 977fc191b4..faedf8315d 100644
--- a/Userland/Libraries/LibC/fenv.cpp
+++ b/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);