From e96a3ca70319aa7cd6bef7c4c67007264ce4d972 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Fri, 28 Oct 2016 17:24:17 -0200 Subject: 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. --- ChangeLog | 4 ++++ stdlib/tst-strfrom.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f40e09f..c7b055d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-12-14 Gabriel F. T. Gomes + + * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF. + 2016-12-14 Adhemerval Zanella * sysdeps/unix/sysv/linux/renameat.c: New file. 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 -- cgit v1.1