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:
Alex Richardson 2021-03-25 11:15:41 +00:00
parent 6f30d1c851
commit dd5ed53a2f

View File

@ -231,7 +231,7 @@ feenableexcept(int __mask __unused)
/* No exception traps. */
return (-1);
return (0);
}
static inline int