error: non-pointer operand type 'unsigned int' incompatible with nullptr
yurivict opened this issue · comments
yuri@FreeBSD commented
/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