OSDN Git Service

extra casting required by new pointer type
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Jul 2001 04:20:08 +0000 (04:20 +0000)
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Jul 2001 04:20:08 +0000 (04:20 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44222 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fixinc/fixincl.c

index 23d3900..a1746af 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);