* gimple-ssa-sprintf.c (parse_directive): Cast second dir.len to uhwi.

From-SVN: r256219
This commit is contained in:
Jakub Jelinek 2018-01-04 00:43:56 +01:00 committed by Jakub Jelinek
parent cf3fc0e8ac
commit a5a4a9dfa9
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2018-01-04 Jakub Jelinek <jakub@redhat.com>
* gimple-ssa-sprintf.c (parse_directive): Cast second dir.len to uhwi.
2018-01-03 Martin Sebor <msebor@redhat.com>
PR tree-optimization/83655

View File

@ -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;