From 4fc79d07c637f2fdd33f3ceb9461c6b84df086a9 Mon Sep 17 00:00:00 2001 From: Lars Immisch Date: Wed, 6 Sep 2023 16:33:59 +0200 Subject: [PATCH] One more Windows error fixed --- rem/aufile/aufile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rem/aufile/aufile.c b/rem/aufile/aufile.c index 54f75a73c..ed0d691fe 100644 --- a/rem/aufile/aufile.c +++ b/rem/aufile/aufile.c @@ -310,8 +310,8 @@ size_t aufile_set_position(struct aufile *af, struct aufile_prm *prm, return err; } - pos = prm->srate * aufmt_sample_size(prm->fmt) - * prm->channels * pos_ms / 1000; + pos = (off_t)(prm->srate * aufmt_sample_size(prm->fmt) + * prm->channels * pos_ms / 1000); if (fseek(af->f, pos, SEEK_CUR) < 0) { return errno;