aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-12 04:46:45 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-01-12 04:46:45 +0200
commit37fbdfb7263522c11c7ad2685413d6295532581d (patch)
tree42a679ba25082c2ed2dd3bf5654b83852f453aa3 /src/common
parentBuild: Make configure add more warning flags for GCC and Clang. (diff)
downloadxz-37fbdfb7263522c11c7ad2685413d6295532581d.tar.xz
liblzma: Silence a warning from -Wsign-conversion in a 32-bit build.
Diffstat (limited to '')
-rw-r--r--src/common/mythread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/mythread.h b/src/common/mythread.h
index 37b5216b..7a80f966 100644
--- a/src/common/mythread.h
+++ b/src/common/mythread.h
@@ -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;