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:
wmayer
2022-05-17 11:43:40 +02:00
parent 06515cd340
commit d0f98bf45c
4 changed files with 9 additions and 9 deletions

View File

@@ -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");