From d99236e9166d873139fb1c14e33556aea91e17bd Mon Sep 17 00:00:00 2001 From: Lassebq Date: Sat, 30 Mar 2024 21:17:18 +0200 Subject: fenv: return -1 if caller tries to enable exception traps --- libgcompat/fenv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libgcompat/fenv.c b/libgcompat/fenv.c index b761f89..07dbec1 100644 --- a/libgcompat/fenv.c +++ b/libgcompat/fenv.c @@ -3,7 +3,10 @@ int fedisableexcept(int excepts) { } int feenableexcept(int excepts) { - return 0; + if(excepts != 0) { + return -1; + } + return 0; } int fegetexcept(void) { -- cgit v1.2.3-70-g09d2