changeset 30104 | 63e1dca2d6a4 |
parent 25093 | fe3a72a3e7ca |
child 30105 | b2f90d8878ac |
--- a/mercurial/dirs.c Sat Oct 08 22:44:02 2016 +0200 +++ b/mercurial/dirs.c Sat Oct 08 16:02:51 2016 +0200 @@ -61,8 +61,8 @@ if (key == NULL) goto bail; } - PyString_GET_SIZE(key) = pos; - PyString_AS_STRING(key)[pos] = '\0'; + Py_SIZE(key) = pos; + ((PyStringObject *)key)->ob_sval[pos] = '\0'; val = PyDict_GetItem(dirs, key); if (val != NULL) {