extra casting required by new pointer type

From-SVN: r44221
This commit is contained in:
Bruce Korb 2001-07-21 04:19:53 +00:00
parent d411036feb
commit 453f6a5b09

View File

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