Part: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -117,7 +117,8 @@ static Py_hash_t _TopoShapeHash(PyObject* self)
|
||||
#if OCC_VERSION_HEX >= 0x070800
|
||||
return std::hash<TopoDS_Shape> {}(static_cast<TopoShapePy*>(self)->getTopoShapePtr()->getShape());
|
||||
#else
|
||||
return static_cast<TopoShapePy*>(self)->getTopoShapePtr()->getShape().HashCode(INT_MAX);
|
||||
return static_cast<TopoShapePy*>(self)->getTopoShapePtr()->getShape().HashCode(
|
||||
std::numeric_limits<int>::max());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user