sbmlteam / libsbml

LibSBML is a native library for reading, writing and manipulating files and data streams containing the Systems Biology Markup Language (SBML). It offers language bindings for C, C++, C#, Java, JavaScript, MATLAB, Perl, PHP, Python, R and Ruby.

Home Page:https://sbml.org/software/libsbml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: non-pointer operand type 'unsigned int' incompatible with nullptr

yurivict opened this issue · comments

/wrkdirs/usr/ports/biology/py-python-libsbml/work-py39/python-libsbml-5.20.0/libsbml_source/src/sbml/SBase.cpp:1090:29: error: non-pointer operand type 'unsigned int' incompatible with nullptr
  return (mHistory != NULL) ? mHistory->getNumModifiedDates() : NULL;
                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

NULL is not properly defined in C++. In fact, on some systems it is defined as a zero-char. nullptr should be used instead as a null pointer.

Version: 5.20.0
clang-14
FreeBSD 13.1