[Python-checkins] CVS: python/dist/src/Objects typeobject.c,2.16.8.58,2.16.8.59

Tim Peters tim_one@users.sourceforge.net
Tue, 03 Jul 2001 11:51:23 -0700


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

Modified Files:
      Tag: descr-branch
	typeobject.c 
Log Message:
Repair compiler warning (signed/unsigned mismatch across ==).


Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.16.8.58
retrieving revision 2.16.8.59
diff -C2 -r2.16.8.58 -r2.16.8.59
*** typeobject.c	2001/07/03 00:48:14	2.16.8.58
--- typeobject.c	2001/07/03 18:51:21	2.16.8.59
***************
*** 356,360 ****
  	if (type->tp_dictoffset != 0 && base->tp_dictoffset == 0 &&
  	    type->tp_dictoffset == b_size &&
! 	    t_size == b_size + sizeof(PyObject *))
  		return 0; /* "Forgive" adding a __dict__ only */
  	return 1;
--- 356,360 ----
  	if (type->tp_dictoffset != 0 && base->tp_dictoffset == 0 &&
  	    type->tp_dictoffset == b_size &&
! 	    (size_t)t_size == b_size + sizeof(PyObject *))
  		return 0; /* "Forgive" adding a __dict__ only */
  	return 1;