Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 1023:94ab6761afe2 legacy-trunk
Remove bogus type-and-refcnt setting from newsizedstringobject().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 03 Sep 1992 20:44:02 +0000 |
| parents | 0cd197947d81 |
| children | c4cd0d9d8281 |
line wrap: on
line diff
--- a/Objects/stringobject.c Thu Sep 03 20:41:22 1992 +0000 +++ b/Objects/stringobject.c Thu Sep 03 20:44:02 1992 +0000 @@ -132,9 +132,6 @@ register int i; register char c; register char *p; - NEWREF(v); - v->ob_type = &Stringtype; - ((stringobject *)v)->ob_size = newsize; p = ((stringobject *)v)->ob_sval; *p++ = '\''; for (i = 0; i < op->ob_size; i++) {
