From: Gaius Mulley Date: Mon, 6 Feb 2023 18:50:18 +0000 (+0000) Subject: Format error in m2pp.cc (m2pp_integer_cst) [PR107234] X-Git-Tag: basepoints/gcc-14~1486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d0892d61a82a338925c81853b45eb8b4929fc0;p=thirdparty%2Fgcc.git 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 Signed-off-by: Gaius Mulley --- diff --git a/gcc/m2/m2pp.cc b/gcc/m2/m2pp.cc index 3f4518074c8b..21d1cb9dce73 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); }