diff options
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index ed6d3b4..e9c2f02 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -495,9 +495,9 @@ gt_pch_save (f) /* Pad the PCH file so that the mmaped area starts on a page boundary. */ { - off_t o; - o = ftello (state.f) + sizeof (mmi); - if (o == (off_t) -1) + long o; + o = ftell (state.f) + sizeof (mmi); + if (o == -1) fatal_io_error ("can't get position in PCH file"); mmi.offset = page_size - o % page_size; if (mmi.offset == page_size) |