diff --git a/lib/libm/arch/x86_64/fenv.c b/lib/libm/arch/x86_64/fenv.c index dbe4b4503bba..185fbaa156e5 100644 --- a/lib/libm/arch/x86_64/fenv.c +++ b/lib/libm/arch/x86_64/fenv.c @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.c,v 1.4 2013/05/29 02:27:39 riastradh Exp $ */ +/* $NetBSD: fenv.c,v 1.5 2013/10/18 17:03:02 christos Exp $ */ /*- * Copyright (c) 2004-2005 David Schultz @@ -27,7 +27,7 @@ */ #include -__RCSID("$NetBSD: fenv.c,v 1.4 2013/05/29 02:27:39 riastradh Exp $"); +__RCSID("$NetBSD: fenv.c,v 1.5 2013/10/18 17:03:02 christos Exp $"); #include #include @@ -181,7 +181,7 @@ feraiseexcept(int excepts) _DIAGASSERT((excepts & ~FE_ALL_EXCEPT) == 0); ex = excepts & FE_ALL_EXCEPT; - fesetexceptflag((unsigned int *)&excepts, excepts); + fesetexceptflag((unsigned int *)&ex, ex); __fwait(); /* Success */