[Python-checkins] python/dist/src/Objects stringobject.c, 2.222, 2.223

arigo at users.sourceforge.net arigo at users.sourceforge.net
Sat Aug 7 21:27:41 CEST 2004


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10229

Modified Files:
	stringobject.c 
Log Message:
Fixed some compiler warnings.


Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.222
retrieving revision 2.223
diff -C2 -d -r2.222 -r2.223
*** stringobject.c	7 Aug 2004 19:20:05 -0000	2.222
--- stringobject.c	7 Aug 2004 19:27:39 -0000	2.223
***************
*** 4335,4339 ****
  	}
  
! 	if (PyDict_SetItem(interned, s, s) < 0) {
  		PyErr_Clear();
  		return;
--- 4335,4339 ----
  	}
  
! 	if (PyDict_SetItem(interned, (PyObject *)s, (PyObject *)s) < 0) {
  		PyErr_Clear();
  		return;
***************
*** 4341,4345 ****
  	/* The two references in interned are not counted by refcnt.
  	   The string deallocator will take care of this */
! 	(*p)->ob_refcnt -= 2;
  	PyString_CHECK_INTERNED(s) = SSTATE_INTERNED_MORTAL;
  }
--- 4341,4345 ----
  	/* The two references in interned are not counted by refcnt.
  	   The string deallocator will take care of this */
! 	s->ob_refcnt -= 2;
  	PyString_CHECK_INTERNED(s) = SSTATE_INTERNED_MORTAL;
  }



More information about the Python-checkins mailing list