diff options
Diffstat (limited to 'math/feenablxcpt.c')
-rw-r--r-- | math/feenablxcpt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/math/feenablxcpt.c b/math/feenablxcpt.c index d8620a03f0..e57d4e3c15 100644 --- a/math/feenablxcpt.c +++ b/math/feenablxcpt.c @@ -22,7 +22,10 @@ int feenableexcept (int excepts) { - /* Signal failure. */ - return -1; + /* Signal failure if any exception traps are to be enabled. */ + if (excepts != 0) + return -1; + else + return 0; } stub_warning (feenableexcept) |