Skip to content

Commit

Permalink
One more Windows error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
larsimmisch committed Sep 6, 2023
1 parent 1d6ac3c commit 4fc79d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rem/aufile/aufile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fc79d0

Please sign in to comment.