CRA-43 changed variable from size_t to int due to compilation warning