[Python-checkins] CVS: python/dist/src/Objects stringobject.c,2.111,2.112
Tim Peters
tim_one@users.sourceforge.net
Wed, 09 May 2001 01:43:23 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv10106/python/dist/src/Objects
Modified Files:
stringobject.c
Log Message:
Sheesh -- repair the dodge around "cast isn't an lvalue" complaints to
restore correct semantics.
Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.111
retrieving revision 2.112
diff -C2 -r2.111 -r2.112
*** stringobject.c 2001/05/09 07:37:07 2.111
--- stringobject.c 2001/05/09 08:43:21 2.112
***************
*** 76,79 ****
--- 76,80 ----
PyObject *t = (PyObject *)op;
PyString_InternInPlace(&t);
+ op = (PyStringObject *)t;
nullstring = op;
Py_INCREF(op);
***************
*** 81,84 ****
--- 82,86 ----
PyObject *t = (PyObject *)op;
PyString_InternInPlace(&t);
+ op = (PyStringObject *)t;
characters[*str & UCHAR_MAX] = op;
Py_INCREF(op);
***************
*** 132,135 ****
--- 134,138 ----
PyObject *t = (PyObject *)op;
PyString_InternInPlace(&t);
+ op = (PyStringObject *)t;
nullstring = op;
Py_INCREF(op);
***************
*** 137,140 ****
--- 140,144 ----
PyObject *t = (PyObject *)op;
PyString_InternInPlace(&t);
+ op = (PyStringObject *)t;
characters[*str & UCHAR_MAX] = op;
Py_INCREF(op);