diff --git a/src/OpenFOAM/containers/Lists/List/List.C b/src/OpenFOAM/containers/Lists/List/List.C index 8a06df242c..934fc085f4 100644 --- a/src/OpenFOAM/containers/Lists/List/List.C +++ b/src/OpenFOAM/containers/Lists/List/List.C @@ -381,7 +381,7 @@ void Foam::List::setSize(const label newSize) template void Foam::List::setSize(const label newSize, const T& a) { - label oldSize = this->size_; + label oldSize = label(this->size_); this->setSize(newSize); if (newSize > oldSize)