Commit c8b0c191 by Bruce Korb

extra casting required by new pointer type

From-SVN: r44222
parent 90376ae2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment