public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix arg used as litteral suffix in tst-strfrom.h
@ 2016-11-09 18:37 Gabriel F. T. Gomes
  2016-12-12 19:50 ` Gabriel F. T. Gomes
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel F. T. Gomes @ 2016-11-09 18:37 UTC (permalink / raw)
  To: libc-alpha

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.

2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>

	* stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
---
 stdlib/tst-strfrom.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.4.11

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-13  5:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-09 18:37 [PATCH] Fix arg used as litteral suffix in tst-strfrom.h Gabriel F. T. Gomes
2016-12-12 19:50 ` Gabriel F. T. Gomes
2016-12-13  5:07   ` Rajalakshmi Srinivasaraghavan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).