[Python-checkins] r42765 - python/trunk/Modules/fcntlmodule.c

thomas.wouters python-checkins at python.org
Thu Mar 2 01:21:11 CET 2006


Author: thomas.wouters
Date: Thu Mar  2 01:21:10 2006
New Revision: 42765

Modified:
   python/trunk/Modules/fcntlmodule.c
Log:

Make Py_ssize_t-clean



Modified: python/trunk/Modules/fcntlmodule.c
==============================================================================
--- python/trunk/Modules/fcntlmodule.c	(original)
+++ python/trunk/Modules/fcntlmodule.c	Thu Mar  2 01:21:10 2006
@@ -1,6 +1,8 @@
 
 /* fcntl module */
 
+#define PY_SSIZE_T_CLEAN
+
 #include "Python.h"
 
 #ifdef HAVE_SYS_FILE_H
@@ -35,7 +37,7 @@
 	int arg;
 	int ret;
 	char *str;
-	int len;
+	Py_ssize_t len;
 	char buf[1024];
 
 	if (PyArg_ParseTuple(args, "O&is#:fcntl",
@@ -98,7 +100,7 @@
 	int arg;
 	int ret;
 	char *str;
-	int len;
+	Py_ssize_t len;
 	int mutate_arg = 1;
 	char buf[1024];
 


More information about the Python-checkins mailing list