Mercurial > cpython-lru_cache-weakref
diff Python/marshal.c @ 44351:86a2679dca46
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 19 Dec 2007 02:45:37 +0000 |
| parents | f324631462a2 |
| children | c3b38a85989f |
line wrap: on
line diff
--- a/Python/marshal.c Wed Dec 19 02:07:34 2007 +0000 +++ b/Python/marshal.c Wed Dec 19 02:45:37 2007 +0000 @@ -153,7 +153,7 @@ PyLongObject *ob = (PyLongObject *)v; PyErr_Clear(); w_byte(TYPE_LONG, p); - n = Py_Size(ob); + n = Py_SIZE(ob); w_long((long)n, p); if (n < 0) n = -n; @@ -557,7 +557,7 @@ retval = NULL; break; } - Py_Size(ob) = n; + Py_SIZE(ob) = n; for (i = 0; i < size; i++) { int digit = r_short(p); if (digit < 0) {
