public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5721] Format error in m2pp.cc (m2pp_integer_cst) [PR107234]
@ 2023-02-06 18:50 Gaius Mulley
0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2023-02-06 18:50 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:17d0892d61a82a338925c81853b45eb8b4929fc0
commit r13-5721-g17d0892d61a82a338925c81853b45eb8b4929fc0
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date: Mon Feb 6 18:50:18 2023 +0000
Format error in m2pp.cc (m2pp_integer_cst) [PR107234]
Use HOST_WIDE_INT_PRINT_UNSIGNED instead of hardcoding a
specific format.
gcc/m2/ChangeLog:
* m2pp.cc (m2pp_integer_cst): Use
HOST_WIDE_INT_PRINT_UNSIGNED as the format specifier.
PR modula2/107234
Co-Authored by: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diff:
---
gcc/m2/m2pp.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/m2/m2pp.cc b/gcc/m2/m2pp.cc
index 3f4518074c8..21d1cb9dce7 100644
--- a/gcc/m2/m2pp.cc
+++ b/gcc/m2/m2pp.cc
@@ -2068,7 +2068,7 @@ m2pp_integer_cst (pretty *s, tree t)
{
char val[100];
- snprintf (val, 100, "%lud", TREE_INT_CST_LOW (t));
+ snprintf (val, 100, HOST_WIDE_INT_PRINT_UNSIGNED, TREE_INT_CST_LOW (t));
m2pp_print (s, val);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-06 18:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-06 18:50 [gcc r13-5721] Format error in m2pp.cc (m2pp_integer_cst) [PR107234] Gaius Mulley
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).