From a5a4a9dfa9478b03165e7d30a1c472cebfb95f7a Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 4 Jan 2018 00:43:56 +0100 Subject: [PATCH] * gimple-ssa-sprintf.c (parse_directive): Cast second dir.len to uhwi. From-SVN: r256219 --- gcc/ChangeLog | 4 ++++ gcc/gimple-ssa-sprintf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a11d6e361e8..57c85613e2d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-01-04 Jakub Jelinek + + * gimple-ssa-sprintf.c (parse_directive): Cast second dir.len to uhwi. + 2018-01-03 Martin Sebor PR tree-optimization/83655 diff --git a/gcc/gimple-ssa-sprintf.c b/gcc/gimple-ssa-sprintf.c index 7d16bbd16f8..a2dd54502e8 100644 --- a/gcc/gimple-ssa-sprintf.c +++ b/gcc/gimple-ssa-sprintf.c @@ -3040,7 +3040,7 @@ parse_directive (sprintf_dom_walker::call_info &info, "length = " HOST_WIDE_INT_PRINT_UNSIGNED "\n", dir.dirno, (unsigned HOST_WIDE_INT)(size_t)(dir.beg - info.fmtstr), - (int)dir.len, dir.beg, dir.len); + (int)dir.len, dir.beg, (unsigned HOST_WIDE_INT) dir.len); } return len - !*str; -- 2.30.2