diff options
author | Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> | 2016-10-28 17:24:17 -0200 |
---|---|---|
committer | Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> | 2016-12-14 15:45:08 -0200 |
commit | e96a3ca70319aa7cd6bef7c4c67007264ce4d972 (patch) | |
tree | 790cff852c82e292b7b2b3789d5b499530975b29 /stdlib | |
parent | 8b9283dabd5ab3524c9a76fabbb379f950a86e6d (diff) | |
download | glibc-e96a3ca70319aa7cd6bef7c4c67007264ce4d972.zip glibc-e96a3ca70319aa7cd6bef7c4c67007264ce4d972.tar.gz glibc-e96a3ca70319aa7cd6bef7c4c67007264ce4d972.tar.bz2 |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/tst-strfrom.h b/stdlib/tst-strfrom.h index 31a6492..75be55f 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 |