liblzma: Silence a warning from -Wsign-conversion in a 32-bit build.

This commit is contained in:
Lasse Collin 2023-01-12 04:46:45 +02:00 committed by Jia Tan
parent b16b9c0d22
commit 2b8062ef94
1 changed files with 2 additions and 2 deletions

View File

@ -300,8 +300,8 @@ static inline void
mythread_condtime_set(mythread_condtime *condtime, const mythread_cond *cond,
uint32_t timeout_ms)
{
condtime->tv_sec = timeout_ms / 1000;
condtime->tv_nsec = (timeout_ms % 1000) * 1000000;
condtime->tv_sec = (time_t)(timeout_ms / 1000);
condtime->tv_nsec = (long)((timeout_ms % 1000) * 1000000);
#ifdef HAVE_CLOCK_GETTIME
struct timespec now;