about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2016-10-28 17:24:17 -0200
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2016-12-14 15:45:08 -0200
commite96a3ca70319aa7cd6bef7c4c67007264ce4d972 (patch)
tree790cff852c82e292b7b2b3789d5b499530975b29 /stdlib
parent8b9283dabd5ab3524c9a76fabbb379f950a86e6d (diff)
downloadglibc-e96a3ca70319aa7cd6bef7c4c67007264ce4d972.tar.gz
glibc-e96a3ca70319aa7cd6bef7c4c67007264ce4d972.tar.xz
glibc-e96a3ca70319aa7cd6bef7c4c67007264ce4d972.zip
Fix arg used as litteral suffix in tst-strfrom.h
The macro ENTRY in tst-strfrom.h is used to generate the input values for
each floating-point type (float, double, long double).  It should append
the parameter LSUF (Literal suffix) to the floating-point number, but is
using CSUF (C function suffix).  This patch fixes it.

Tested for powerpc64le and x86_64.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-strfrom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/tst-strfrom.h b/stdlib/tst-strfrom.h
index 31a6492936..75be55fa03 100644
--- a/stdlib/tst-strfrom.h
+++ b/stdlib/tst-strfrom.h
@@ -36,7 +36,7 @@
 #define STRUCT_FOREACH_FLOAT_FTYPE GEN_TEST_STRTOD_FOREACH (FTYPE_MEMBER)
 
 #define ENTRY(FSUF, FTYPE, FTOSTR, LSUF, CSUF, ...)  \
-   CONCAT (__VA_ARGS__, CSUF),
+   CONCAT (__VA_ARGS__, LSUF),
 /* This is hacky way around the seemingly unavoidable macro
  * expansion of the INFINITY or HUGE_VAL like macros in the
  * above.  It is assumed the compiler will implicitly convert