summaryrefslogtreecommitdiff
path: root/src/stdio/fgetpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fgetpos.c')
-rw-r--r--src/stdio/fgetpos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/fgetpos.c b/src/stdio/fgetpos.c
index c3fa0eb0..6eb361e1 100644
--- a/src/stdio/fgetpos.c
+++ b/src/stdio/fgetpos.c
@@ -4,7 +4,7 @@ int fgetpos(FILE *restrict f, fpos_t *restrict pos)
{
off_t off = __ftello(f);
if (off < 0) return -1;
- *(off_t *)pos = off;
+ *(long long *)pos = off;
return 0;
}