summaryrefslogtreecommitdiffstats
path: root/contrib/libf2c/libI77/ftell_.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libf2c/libI77/ftell_.c')
-rw-r--r--contrib/libf2c/libI77/ftell_.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libf2c/libI77/ftell_.c b/contrib/libf2c/libI77/ftell_.c
index 1f6d87f..250a0cc 100644
--- a/contrib/libf2c/libI77/ftell_.c
+++ b/contrib/libf2c/libI77/ftell_.c
@@ -22,7 +22,7 @@ G77_ftell_0 (integer *Unit)
#endif
{
FILE *f;
- return (f = unit_chk(*Unit, "ftell")) ? ftell(f) : -1L;
+ return (f = unit_chk(*Unit, "ftell")) ? (integer) FTELL(f) : -1L;
}
integer
@@ -43,5 +43,5 @@ G77_fseek_0 (integer *Unit, integer *offset, integer *xwhence)
w = wohin[w];
#endif
return !(f = unit_chk(*Unit, "fseek"))
- || fseek(f, *offset, w) ? 1 : 0;
+ || FSEEK(f, (off_t) *offset, w) ? 1 : 0;
}
OpenPOWER on IntegriCloud