mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
6f30d1c851
commit
dd5ed53a2f
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ feenableexcept(int __mask __unused)
|
|||
|
||||
/* No exception traps. */
|
||||
|
||||
return (-1);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
|
|
|||
Loading…
Reference in a new issue