diff --git a/Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp b/Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp index 5c582646d600..98f82e25f19e 100644 --- a/Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp +++ b/Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp @@ -807,7 +807,7 @@ namespace Mantid // Remove each investigation returned from `myData` // were the user does not have create/write access. - for (int row = ws->rowCount() - 1; row >= 0; --row) + for (int row = static_cast(ws->rowCount()) - 1; row >= 0; --row) { // The investigation used to check CREATE access against. ns1__investigation investigation;