projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90376ae
)
extra casting required by new pointer type
author
Bruce Korb
<korbb@gcc.gnu.org>
Sat, 21 Jul 2001 04:20:08 +0000
(
04:20
+0000)
committer
Bruce Korb
<korbb@gcc.gnu.org>
Sat, 21 Jul 2001 04:20:08 +0000
(
04:20
+0000)
From-SVN: r44222
gcc/fixinc/fixincl.c
patch
|
blob
|
history
diff --git
a/gcc/fixinc/fixincl.c
b/gcc/fixinc/fixincl.c
index 23d390024fc00c662d8acb653719d6eae200f4db..a1746af52691e9455cf446a88b716427afe6b533 100644
(file)
--- 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);