Skip to content

Commit

Permalink
Silence char* constness cast warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Jun 18, 2024
1 parent 56e405d commit 9fd285b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/ResManager/pyResManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<char**>(kwdlist), &version, &preserveObjIDs))
return -1;

self->fThis->setVer((PlasmaVer)version);
Expand Down

0 comments on commit 9fd285b

Please sign in to comment.