* gimple-ssa-sprintf.c (parse_directive): Cast second dir.len to uhwi.
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Jan 2018 23:43:56 +0000 (00:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Jan 2018 23:43:56 +0000 (00:43 +0100)
From-SVN: r256219

gcc/ChangeLog
gcc/gimple-ssa-sprintf.c

index a11d6e361e81654bc494611d9b206694f1011925..57c85613e2dfc86bf4a50d8f482849cfa2b07798 100644 (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
index 7d16bbd16f87e22298f4a82da58f08c86d2d966e..a2dd54502e854781ee435df8dd3073325f39f353 100644 (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;