mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Make Py_ssize_t clean.
This commit is contained in:
		
							parent
							
								
									d9bfeac330
								
							
						
					
					
						commit
						695934a0ef
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -4,6 +4,8 @@
 | 
				
			||||||
   a true persistent storage facility would be much harder, since
 | 
					   a true persistent storage facility would be much harder, since
 | 
				
			||||||
   it would have to take circular links and sharing into account. */
 | 
					   it would have to take circular links and sharing into account. */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define PY_SSIZE_T_CLEAN
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "Python.h"
 | 
					#include "Python.h"
 | 
				
			||||||
#include "longintrepr.h"
 | 
					#include "longintrepr.h"
 | 
				
			||||||
#include "code.h"
 | 
					#include "code.h"
 | 
				
			||||||
| 
						 | 
					@ -1088,7 +1090,7 @@ marshal_loads(PyObject *self, PyObject *args)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	RFILE rf;
 | 
						RFILE rf;
 | 
				
			||||||
	char *s;
 | 
						char *s;
 | 
				
			||||||
	int n;
 | 
						Py_ssize_t n;
 | 
				
			||||||
	PyObject* result;
 | 
						PyObject* result;
 | 
				
			||||||
	if (!PyArg_ParseTuple(args, "s#:loads", &s, &n))
 | 
						if (!PyArg_ParseTuple(args, "s#:loads", &s, &n))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue