[Python-checkins] CVS: python/dist/src/Objects intobject.c,2.56.6.4,2.56.6.5

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 13 Jun 2001 17:53:36 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv10258

Modified Files:
      Tag: descr-branch
	intobject.c 
Log Message:
In int_new(), assert that the type argument is &PyInt_Type.


Index: intobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/intobject.c,v
retrieving revision 2.56.6.4
retrieving revision 2.56.6.5
diff -C2 -r2.56.6.4 -r2.56.6.5
*** intobject.c	2001/06/11 21:06:03	2.56.6.4
--- intobject.c	2001/06/14 00:53:34	2.56.6.5
***************
*** 758,761 ****
--- 758,762 ----
  	static char *kwlist[] = {"x", "base", 0};
  
+ 	assert(type == &PyInt_Type);
  	if (!PyArg_ParseTupleAndKeywords(args, kwds, "|Oi:int", kwlist,
  					 &x, &base))