Conda: ssize_t is a POSIX type and thus not necessarily defined on Windows. Currently this causes build failures with Conda + Py3.10.
The solution is to get rid off all occurrences of ssize_t in FreeCAD code
This commit is contained in:
@@ -527,7 +527,7 @@ void ComboLinks::clear()
|
||||
|
||||
App::PropertyLinkSub &ComboLinks::getLink(int index) const
|
||||
{
|
||||
if (index < 0 || index > (ssize_t) linksInList.size()-1)
|
||||
if (index < 0 || index > static_cast<int>(linksInList.size())-1)
|
||||
throw Base::IndexError("ComboLinks::getLink:Index out of range");
|
||||
if (linksInList[index]->getValue() && doc && !(doc->isIn(linksInList[index]->getValue())))
|
||||
throw Base::ValueError("Linked object is not in the document; it may have been deleted");
|
||||
|
||||
Reference in New Issue
Block a user