Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Hansen <[email protected]>
  • Loading branch information
dpogue and zrax authored Jun 18, 2024
1 parent 9fd285b commit ec91de1
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)
{
const char* kwdlist[] = { "version", "preserveObjIDs", nullptr };
char* kwdlist[] = { _pycs("version"), _pycs("preserveObjIDs"), nullptr };

int version = PlasmaVer::pvUnknown;
bool preserveObjIDs = false;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|ib", const_cast<char**>(kwdlist), &version, &preserveObjIDs))
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|ib", kwdlist, &version, &preserveObjIDs))
return -1;

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

0 comments on commit ec91de1

Please sign in to comment.