diff Modules/socketmodule.c @ 19568:b0f5278a2ab4 legacy-trunk

SF bug [#456252] Python should never stomp on [u]intptr_t. pyport.h: typedef a new Py_intptr_t type. DELICATE ASSUMPTION: That HAVE_UINTPTR_T implies intptr_t is available as well as uintptr_t. If that turns out not to be true, things must get uglier (C99 wants both, so I think it's an assumption we're *likely* to get away with). thread_nt.h, PyThread_start_new_thread: MS _beginthread is documented as returning unsigned long; no idea why uintptr_t was being used. Others: Always use Py_[u]intptr_t, never [u]intptr_t directly.
author Tim Peters <tim.peters@gmail.com>
date Wed, 29 Aug 2001 21:37:10 +0000
parents 0928cd62ddea
children 98f597a17c90
line wrap: on
line diff
--- a/Modules/socketmodule.c	Wed Aug 29 20:57:43 2001 +0000
+++ b/Modules/socketmodule.c	Wed Aug 29 21:37:10 2001 +0000
@@ -1423,7 +1423,7 @@
 	char *mode = "r";
 	int bufsize = -1;
 #ifdef MS_WIN32
-	intptr_t fd;
+	Py_intptr_t fd;
 #else
 	int fd;
 #endif