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>
This commit is contained in:
parent
45e01229af
commit
17d0892d61
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue