From ce8336050d4f7d58aa0631d2e776ea84ec0a9699 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 22 Jan 2011 23:42:43 +0000 Subject: [PATCH] .Web: socket git-svn-id: svn://ultimatepp.org/upp/trunk@3064 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Web/socket.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uppsrc/Web/socket.cpp b/uppsrc/Web/socket.cpp index baba77330..258ad2325 100644 --- a/uppsrc/Web/socket.cpp +++ b/uppsrc/Web/socket.cpp @@ -796,7 +796,7 @@ static String& SockErrorText() { static StaticCriticalSection csect; CriticalSection::Lock lock(csect); - static Index thread_index; + static Index thread_index; static Array thread_errors; static Vector error_ticks; int t = msecs(); @@ -809,12 +809,12 @@ static String& SockErrorText() } } #ifdef PLATFORM_WIN32 - int tid = GetCurrentThreadId(); + uintptr_t tid = GetCurrentThreadId(); #else #ifdef _MULTITHREADED - int tid = (int)Thread::GetCurrentId(); + uintptr_t tid = (uintptr_t)Thread::GetCurrentId(); #else - int tid = 0; + uintptr_t tid = 0; #endif #endif int f = thread_index.Find(tid);