diff Objects/stringobject.c @ 17721:1dea431fb0a0 legacy-trunk

Sheesh -- repair the dodge around "cast isn't an lvalue" complaints to restore correct semantics.
author Tim Peters <tim.peters@gmail.com>
date Wed, 09 May 2001 08:43:21 +0000
parents ede29ad6440a
children ed771b5db5aa
line wrap: on
line diff
--- a/Objects/stringobject.c	Wed May 09 07:37:07 2001 +0000
+++ b/Objects/stringobject.c	Wed May 09 08:43:21 2001 +0000
@@ -75,11 +75,13 @@
 	if (size == 0) {
 		PyObject *t = (PyObject *)op;
 		PyString_InternInPlace(&t);
+		op = (PyStringObject *)t;
 		nullstring = op;
 		Py_INCREF(op);
 	} else if (size == 1 && str != NULL) {
 		PyObject *t = (PyObject *)op;
 		PyString_InternInPlace(&t);
+		op = (PyStringObject *)t;
 		characters[*str & UCHAR_MAX] = op;
 		Py_INCREF(op);
 	}
@@ -131,11 +133,13 @@
 	if (size == 0) {
 		PyObject *t = (PyObject *)op;
 		PyString_InternInPlace(&t);
+		op = (PyStringObject *)t;
 		nullstring = op;
 		Py_INCREF(op);
 	} else if (size == 1) {
 		PyObject *t = (PyObject *)op;
 		PyString_InternInPlace(&t);
+		op = (PyStringObject *)t;
 		characters[*str & UCHAR_MAX] = op;
 		Py_INCREF(op);
 	}