projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a warning in last patch.
[gnulib.git]
/
tests
/
test-frexp.c
diff --git
a/tests/test-frexp.c
b/tests/test-frexp.c
index
7d2a275
..
9ce989b
100644
(file)
--- a/
tests/test-frexp.c
+++ b/
tests/test-frexp.c
@@
-22,11
+22,21
@@
#include <math.h>
#include <float.h>
#include <math.h>
#include <float.h>
+#include <stdio.h>
#include <stdlib.h>
#include "isnan.h"
#include <stdlib.h>
#include "isnan.h"
-#define ASSERT(expr) if (!(expr)) abort ();
+#define ASSERT(expr) \
+ do \
+ { \
+ if (!(expr)) \
+ { \
+ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+ abort (); \
+ } \
+ } \
+ while (0)
/* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */
#ifdef __DECC
/* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */
#ifdef __DECC