]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
extra casting required by new pointer type
authorBruce Korb <korbb@gcc.gnu.org>
Sat, 21 Jul 2001 04:20:08 +0000 (04:20 +0000)
committerBruce Korb <korbb@gcc.gnu.org>
Sat, 21 Jul 2001 04:20:08 +0000 (04:20 +0000)
From-SVN: r44222

gcc/fixinc/fixincl.c

index 23d390024fc00c662d8acb653719d6eae200f4db..a1746af52691e9455cf446a88b716427afe6b533 100644 (file)
@@ -1292,8 +1292,9 @@ test_for_changes (read_fd)
           altered_ct++;
 #endif
           /*  IF there are matched data, write the matched part now. */
-          if (pz_cmp != pz_curr_data)
-            fwrite (pz_curr_data, (size_t)(pz_cmp - pz_curr_data), 1, out_fp);
+          if ((char*)pz_cmp != pz_curr_data)
+            fwrite (pz_curr_data, (size_t)((char*)pz_cmp - pz_curr_data),
+                                       1, out_fp);
 
           /*  Emit the current unmatching character */
           putc (ch, out_fp);