diff options
author | Bruce Korb <korbb@gcc.gnu.org> | 2001-07-21 04:20:08 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2001-07-21 04:20:08 +0000 |
commit | c8b0c191f70ebae8754231e16a2cda795f39d46c (patch) | |
tree | 678e8e77adeb298230b268cdfca86788335199b4 /gcc | |
parent | 90376ae2b447ac3607e4a76378b74766850478a6 (diff) | |
download | gcc-c8b0c191f70ebae8754231e16a2cda795f39d46c.zip gcc-c8b0c191f70ebae8754231e16a2cda795f39d46c.tar.gz gcc-c8b0c191f70ebae8754231e16a2cda795f39d46c.tar.bz2 |
extra casting required by new pointer type
From-SVN: r44222
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fixinc/fixincl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fixinc/fixincl.c b/gcc/fixinc/fixincl.c index 23d3900..a1746af 100644 --- a/gcc/fixinc/fixincl.c +++ b/gcc/fixinc/fixincl.c @@ -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); |