Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm/arch/x86_64 use the masked variable



details:   https://anonhg.NetBSD.org/src/rev/b9dcf528b444
branches:  trunk
changeset: 790618:b9dcf528b444
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 18 17:03:02 2013 +0000

description:
use the masked variable

diffstat:

 lib/libm/arch/x86_64/fenv.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 106dfeffddd0 -r b9dcf528b444 lib/libm/arch/x86_64/fenv.c
--- a/lib/libm/arch/x86_64/fenv.c       Fri Oct 18 16:06:52 2013 +0000
+++ b/lib/libm/arch/x86_64/fenv.c       Fri Oct 18 17:03:02 2013 +0000
@@ -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 <das (at) FreeBSD.ORG>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__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 <assert.h>
 #include <fenv.h>
@@ -181,7 +181,7 @@
        _DIAGASSERT((excepts & ~FE_ALL_EXCEPT) == 0);
 
        ex = excepts & FE_ALL_EXCEPT;
-       fesetexceptflag((unsigned int *)&excepts, excepts);
+       fesetexceptflag((unsigned int *)&ex, ex);
        __fwait();
 
        /* Success */



Home | Main Index | Thread Index | Old Index