wmusic: fix overflow when calculating remaing track time
commit34e8310cbfb64758b863d7e65a0fb5094cbbacb3
authorJeremy Sowden <jeremy@azazel.net>
Sat, 17 Jun 2023 15:45:07 +0000 (17 16:45 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 18 Jun 2023 09:17:03 +0000 (18 10:17 +0100)
tree5bf0bf8cfd86fc682ae8c6b6609bca6b0807275b
parentca93724e928ca41a2aca6d3f3c9d7e62a9bcd0a5
wmusic: fix overflow when calculating remaing track time

Track position and length are 64-bit integer quantities scaled in
microseconds, so use appropriate types.

Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038264
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
wmusic/src/wmusic.c