Skip to content

Commit

Permalink
Fixed reading parameter of type unsigned C_INT32.
Browse files Browse the repository at this point in the history
  • Loading branch information
shoops committed Apr 8, 2024
1 parent cf13c1a commit 62872bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions copasi/utilities/CCopasiParameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,12 @@ void CCopasiParameter::assignValue(const void * pValue)
}

assignValue(mType, mpValue, pValue);

CDataContainer * pParent = getObjectParent();

if (pParent != nullptr
&& dynamic_cast< CCopasiParameterGroup * >(pParent) != nullptr)
static_cast< CCopasiParameterGroup * >(pParent)->signalChanged(this);
}

void CCopasiParameter::assignValidValues(const void * pValidValues)
Expand Down
2 changes: 1 addition & 1 deletion copasi/xml/parser/ParameterHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CXMLHandler * ParameterHandler::processStart(const XML_Char * pszName,

C_FLOAT64 d;
C_INT32 i;
size_t ui;
unsigned C_INT32 ui;
bool b;

switch (mCurrentElement.first)
Expand Down

0 comments on commit 62872bb

Please sign in to comment.