X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/328e6fc7b17eaeb8708663ae8147db8a958ccda8..42d30ef60edcafe5b5f85f8c0e7d7637ed0a84fc:/bytestring.c diff --git a/bytestring.c b/bytestring.c index b3b32de..4a7378d 100644 --- a/bytestring.c +++ b/bytestring.c @@ -37,7 +37,7 @@ static PyObject *dowrap(PyTypeObject *ty, const void *p, size_t n) PyStringObject *x = (PyStringObject *)ty->tp_alloc(ty, n); if (p) memcpy(x->ob_sval, p, n); x->ob_sval[n] = 0; -#ifdef CACHE_HASH +#if defined(CACHE_HASH) || PY_VERSION_HEX >= 0x02030000 x->ob_shash = -1; #endif x->ob_sstate = SSTATE_NOT_INTERNED;