Update of /cvsroot/python/python/dist/src/Objects In directory usw-pr-cvs1:/tmp/cvs-serv1644 Modified Files: typeobject.c Log Message: Don't drop old slots if _unicode_to_string did not change anything. Index: typeobject.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v retrieving revision 2.180 retrieving revision 2.181 diff -C2 -d -r2.180 -r2.181 *** typeobject.c 14 Oct 2002 21:07:28 -0000 2.180 --- typeobject.c 14 Oct 2002 21:11:34 -0000 2.181 *************** *** 1170,1175 **** #ifdef Py_USING_UNICODE tmp = _unicode_to_string(slots, nslots); ! Py_DECREF(slots); ! slots = tmp; if (!tmp) return NULL; --- 1170,1177 ---- #ifdef Py_USING_UNICODE tmp = _unicode_to_string(slots, nslots); ! if (tmp != slots) { ! Py_DECREF(slots); ! slots = tmp; ! } if (!tmp) return NULL;
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4