diff --git a/Python/ResManager/pyResManager.cpp b/Python/ResManager/pyResManager.cpp index 950dc7e2..d8dcae4e 100644 --- a/Python/ResManager/pyResManager.cpp +++ b/Python/ResManager/pyResManager.cpp @@ -28,11 +28,11 @@ PY_PLASMA_DEALLOC(ResManager) PY_PLASMA_INIT_DECL(ResManager) { - char* kwdlist[] = { "version", "preserveObjIDs", nullptr }; + const char* kwdlist[] = { "version", "preserveObjIDs", nullptr }; int version = PlasmaVer::pvUnknown; bool preserveObjIDs = false; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "|ib", kwdlist, &version, &preserveObjIDs)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "|ib", const_cast(kwdlist), &version, &preserveObjIDs)) return -1; self->fThis->setVer((PlasmaVer)version);