Kouhei Sutou
null+****@clear*****
Thu Oct 30 20:28:29 JST 2014
Kouhei Sutou 2014-10-30 20:28:29 +0900 (Thu, 30 Oct 2014) New Revision: a9c461eec4c713ad64ee11618c94685ca92e7eb3 https://github.com/groonga/groonga/commit/a9c461eec4c713ad64ee11618c94685ca92e7eb3 Message: Add missing casts Modified files: lib/grn.h Modified: lib/grn.h (+2 -2) =================================================================== --- lib/grn.h 2014-10-30 20:27:04 +0900 (8296ed4) +++ lib/grn.h 2014-10-30 20:28:29 +0900 (ebc1af4) @@ -335,9 +335,9 @@ typedef uintptr_t grn_thread; typedef unsigned int grn_thread_func_result; # define GRN_THREAD_FUNC_RETURN_VALUE 0 # define THREAD_CREATE(thread,func,arg) \ - (((thread)=_beginthreadex(NULL, 0, (func), (arg), 0, NULL)) == NULL) + (((thread)=_beginthreadex(NULL, 0, (func), (arg), 0, NULL)) == (grn_thread)0) # define THREAD_JOIN(thread) \ - (WaitForSingleObject((thread), INFINITE) == WAIT_FAILED) + (WaitForSingleObject((HANDLE)(thread), INFINITE) == WAIT_FAILED) typedef HANDLE grn_mutex; # define MUTEX_INIT(m) ((m) = CreateMutex(0, FALSE, NULL)) # define MUTEX_LOCK(m) WaitForSingleObject((m), INFINITE) -------------- next part -------------- HTML����������������������������... 下載