diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2021-03-25 11:15:41 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-03-25 11:16:20 +0000 |
commit | dd5ed53a2f93a5a54efe96bed6bbd0f18b6bdbe2 (patch) | |
tree | 8feafbf0c6d97e8a98dbe700a3d90a6987e51b91 | |
parent | 6f30d1c851467d1f504f469a1b3a75a043ff070f (diff) | |
download | src-dd5ed53a2f93a5a54efe96bed6bbd0f18b6bdbe2.tar.gz src-dd5ed53a2f93a5a54efe96bed6bbd0f18b6bdbe2.zip |
RISC-V: Fix feenableexcept return value
The man page says "The feenableexcept(), fedisableexcept(), and
fegetexcept() functions return a bitmap of the exceptions that were
unmasked prior to the call.", so we should return zero not -1.
Reviewed By: mhorne
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D29386
-rw-r--r-- | lib/msun/riscv/fenv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/riscv/fenv.h b/lib/msun/riscv/fenv.h index 6c8c2861bc97..f5c56f73b229 100644 --- a/lib/msun/riscv/fenv.h +++ b/lib/msun/riscv/fenv.h @@ -231,7 +231,7 @@ feenableexcept(int __mask __unused) /* No exception traps. */ - return (-1); + return (0); } static inline int |