projects
/
libc-test
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb642f7
)
fix float.h api test: FLT_ROUNDS is not int const expr
author
Szabolcs Nagy
<nsz@port70.net>
Tue, 6 Jan 2015 16:00:02 +0000
(17:00 +0100)
committer
Szabolcs Nagy
<nsz@port70.net>
Tue, 6 Jan 2015 16:00:02 +0000
(17:00 +0100)
src/api/float.c
patch
|
blob
|
history
diff --git
a/src/api/float.c
b/src/api/float.c
index
254e50d
..
5a29ecc
100644
(file)
--- a/
src/api/float.c
+++ b/
src/api/float.c
@@
-1,9
+1,10
@@
#include <float.h>
+#define I(n) {int i = n;}
#define C(n) switch(n){case n:;}
#define D(n) {long double d = n;}
static void f()
{
-
C
(FLT_ROUNDS)
+
I
(FLT_ROUNDS)
C(FLT_EVAL_METHOD)
C(FLT_RADIX)
C(FLT_MANT_DIG)