Mesh: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -86,7 +86,7 @@ PyObject* MeshPointPy::unbound(PyObject* args)
|
||||
if (!PyArg_ParseTuple(args, "")) {
|
||||
return nullptr;
|
||||
}
|
||||
getMeshPointPtr()->Index = UINT_MAX;
|
||||
getMeshPointPtr()->Index = std::numeric_limits<unsigned>::max();
|
||||
getMeshPointPtr()->Mesh = nullptr;
|
||||
Py_Return;
|
||||
}
|
||||
@@ -98,7 +98,7 @@ Py::Long MeshPointPy::getIndex() const
|
||||
|
||||
Py::Boolean MeshPointPy::getBound() const
|
||||
{
|
||||
return {getMeshPointPtr()->Index != UINT_MAX};
|
||||
return {getMeshPointPtr()->Index != std::numeric_limits<unsigned>::max()};
|
||||
}
|
||||
|
||||
Py::Object MeshPointPy::getNormal() const
|
||||
|
||||
Reference in New Issue
Block a user