diff Python/thread_nt.h @ 36501:7fdc639bc5b4 legacy-trunk

Merge ssize_t branch.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 15 Feb 2006 17:27:45 +0000
parents b86392f55b59
children aa620856e8a3
line wrap: on
line diff
--- a/Python/thread_nt.h	Wed Feb 15 06:55:57 2006 +0000
+++ b/Python/thread_nt.h	Wed Feb 15 17:27:45 2006 +0000
@@ -170,7 +170,7 @@
 long
 PyThread_start_new_thread(void (*func)(void *), void *arg)
 {
-	unsigned long rv;
+	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 == (unsigned long)-1) {
+	if (rv == (uintptr_t)-1) {
 		/* I've seen errno == EAGAIN here, which means "there are
 		 * too many threads".
 		 */