NetBSD-Bugs archive

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

Re: bin/51837: [PATCH] tests/lib/libm/t_ilogb: add limits.h for INT_MAX



The following reply was made to PR bin/51837; it has been noted by GNATS.

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51837: [PATCH] tests/lib/libm/t_ilogb: add limits.h for
 INT_MAX
Date: Thu, 12 Jan 2017 20:38:43 -0800

 --Apple-Mail=_1B341D53-B253-446E-B0F5-9C13D927697C
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Patch attached.
 -Ngie
 
 --Apple-Mail=_1B341D53-B253-446E-B0F5-9C13D927697C
 Content-Disposition: attachment;
 	filename=lib-libm-t_ilogb-include-INT_MAX.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="lib-libm-t_ilogb-include-INT_MAX.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: lib/libm/t_ilogb.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libm/t_ilogb.c,v
 retrieving revision 1.6
 diff -u -r1.6 t_ilogb.c
 --- lib/libm/t_ilogb.c	26 Aug 2016 08:01:55 -0000	1.6
 +++ lib/libm/t_ilogb.c	13 Jan 2017 04:29:50 -0000
 @@ -31,12 +31,13 @@
  
  #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 { \
 
 --Apple-Mail=_1B341D53-B253-446E-B0F5-9C13D927697C--
 


Home | Main Index | Thread Index | Old Index