Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libm PR/51837: Ngie Cooper: add limits.h for INT_MAX



details:   https://anonhg.NetBSD.org/src/rev/5057a4cd58f8
branches:  trunk
changeset: 820684:5057a4cd58f8
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 13 19:23:40 2017 +0000

description:
PR/51837: Ngie Cooper: add limits.h for INT_MAX

diffstat:

 tests/lib/libm/t_ilogb.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r c06399daecf2 -r 5057a4cd58f8 tests/lib/libm/t_ilogb.c
--- a/tests/lib/libm/t_ilogb.c  Fri Jan 13 19:11:16 2017 +0000
+++ b/tests/lib/libm/t_ilogb.c  Fri Jan 13 19:23:40 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ilogb.c,v 1.6 2016/08/26 08:01:55 christos Exp $ */
+/* $NetBSD: t_ilogb.c,v 1.7 2017/01/13 19:23:40 christos Exp $ */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -28,15 +28,18 @@
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  */
+#include <sys/cdefs.h>
+__RCSID("$NetBSD: t_ilogb.c,v 1.7 2017/01/13 19:23:40 christos Exp $");
 
 #include <atf-c.h>
 #include <fenv.h>
+#include <limits.h>
 #include <math.h>
 
 #ifndef __HAVE_FENV
 
-# define ATF_CHECK_RAISED_INVALID 
-# define ATF_CHECK_RAISED_NOTHING 
+# define ATF_CHECK_RAISED_INVALID
+# define ATF_CHECK_RAISED_NOTHING
 
 #else
 # define ATF_CHECK_RAISED_INVALID do { \



Home | Main Index | Thread Index | Old Index