/[pcsx2_0.9.7]/trunk/3rdparty/w32pthreads/ptw32_throw.c
ViewVC logotype

Diff of /trunk/3rdparty/w32pthreads/ptw32_throw.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/3rdparty/w32pthreads/ptw32_throw.c	2010/12/23 11:48:33	279
+++ trunk/3rdparty/w32pthreads/ptw32_throw.c	2010/12/23 12:02:12	280
@@ -72,15 +72,15 @@
        * explicit thread exit here after cleaning up POSIX
        * residue (i.e. cleanup handlers, POSIX thread handle etc).
        */
-      unsigned exitCode = 0;
+      void* exitCode = 0;
 
       switch (exception)
 	{
 	case PTW32_EPS_CANCEL:
-	  exitCode = (unsigned) PTHREAD_CANCELED;
+	  exitCode = PTHREAD_CANCELED;
 	  break;
 	case PTW32_EPS_EXIT:
-	  exitCode = (unsigned) sp->exitStatus;;
+	  exitCode = sp->exitStatus;
 	  break;
 	}
 
@@ -91,7 +91,7 @@
 #endif
 
 #if ! defined (__MINGW32__) || defined (__MSVCRT__) || defined (__DMC__)
-      _endthreadex (exitCode);
+      _endthreadex ((unsigned)exitCode);
 #else
       _endthread ();
 #endif

 

  ViewVC Help
Powered by ViewVC 1.1.22