From 2e4a2eeaf3eb679c5f3fd1f4280418db6d5dc3a1 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 5 May 2015 14:34:41 -0700 Subject: [PATCH] _beginthread returns uintptr_t. 64-bit Windows is a thing, and we'll have to support it some day... Change-Id: Ib9e2da1a5625e95a0ffadfee8501825dfd4f9594 --- adb/sysdeps.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adb/sysdeps.h b/adb/sysdeps.h index 95d0e2015..0aa157098 100644 --- a/adb/sysdeps.h +++ b/adb/sysdeps.h @@ -84,8 +84,8 @@ typedef void* (*adb_thread_func_t)(void* arg); typedef void (*win_thread_func_t)(void* arg); static __inline__ bool adb_thread_create(adb_thread_func_t func, void* arg) { - unsigned tid = _beginthread( (win_thread_func_t)func, 0, arg ); - return (tid != (unsigned)-1L); + uintptr_t tid = _beginthread((win_thread_func_t)func, 0, arg); + return (tid != static_cast(-1L)); } static __inline__ unsigned long adb_thread_id()