From ad09bbdd1860899f0d8badb359c26be4848b64c9 Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Sat, 15 Jul 2017 17:06:20 +0900 Subject: [PATCH] sanei_thread: Fix [-Wint-conversion] compiler warnings --- sanei/sanei_thread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sanei/sanei_thread.c b/sanei/sanei_thread.c index 186523c7c..10380e09c 100644 --- a/sanei/sanei_thread.c +++ b/sanei/sanei_thread.c @@ -121,12 +121,12 @@ sanei_thread_set_invalid( SANE_Pid *pid ) #ifdef WIN32 #ifdef WINPTHREAD_API - *pid = 0; + *pid = (pthread_t) 0; #else pid->p = 0; #endif #else - *pid = -1; + *pid = (pthread_t) -1; #endif } @@ -162,12 +162,12 @@ sanei_thread_pid_to_long( SANE_Pid pid ) #ifdef WIN32 #ifdef WINPTHREAD_API - rc = pid; + rc = (long) pid; #else rc = pid.p; #endif #else - rc = pid; + rc = (long) pid; #endif return rc;