diff options
author | Lassebq <lassebq.mine@gmail.com> | 2024-03-30 21:17:18 +0200 |
---|---|---|
committer | Lassebq <lassebq.mine@gmail.com> | 2024-03-30 21:17:18 +0200 |
commit | d99236e9166d873139fb1c14e33556aea91e17bd (patch) | |
tree | 7ff4f5c4e4bd2b2121063da753fd136080d45f79 /libgcompat | |
parent | 395f6a4683f4695f8667a323c272afd369964f0f (diff) | |
download | gcompat-d99236e9166d873139fb1c14e33556aea91e17bd.tar.gz gcompat-d99236e9166d873139fb1c14e33556aea91e17bd.tar.bz2 gcompat-d99236e9166d873139fb1c14e33556aea91e17bd.tar.xz gcompat-d99236e9166d873139fb1c14e33556aea91e17bd.zip |
fenv: return -1 if caller tries to enable exception traps
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/fenv.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |