X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffgetpos.c;h=6eb361e1986b720a37f02932c4f32c52cc3a0b12;hb=2fab90a71acd3698954c08b9062db67188443dd7;hp=c3fa0eb0af42982153d5222a7b76e51f941e941e;hpb=400c5e5c8307a2ebe44ef1f203f5a15669f20347;p=musl 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; }