diff Python/thread_nt.h @ 38232:aa620856e8a3 legacy-trunk

Patch #1492356: Port to Windows CE (patch set 1).
author Martin v. Löwis <martin@v.loewis.de>
date Mon, 22 May 2006 09:15:18 +0000
parents 7fdc639bc5b4
children 0b2b076e5908 a19c20c5e5c7
line wrap: on
line diff
--- a/Python/thread_nt.h	Mon May 22 08:48:14 2006 +0000
+++ b/Python/thread_nt.h	Mon May 22 09:15:18 2006 +0000
@@ -170,7 +170,7 @@
 long
 PyThread_start_new_thread(void (*func)(void *), void *arg)
 {
-	uintptr_t rv;
+	Py_uintptr_t rv;
 	callobj obj;
 
 	dprintf(("%ld: PyThread_start_new_thread called\n",
@@ -186,7 +186,7 @@
 		return -1;
 
 	rv = _beginthread(bootstrap, 0, &obj); /* use default stack size */
-	if (rv == (uintptr_t)-1) {
+	if (rv == (Py_uintptr_t)-1) {
 		/* I've seen errno == EAGAIN here, which means "there are
 		 * too many threads".
 		 */