COMP: use label() to convert from uint to avoid compiler warning

This commit is contained in:
andy 2010-10-04 13:00:46 +01:00
parent 7ec390d23d
commit 9b81b5f14b

View File

@ -381,7 +381,7 @@ void Foam::List<T>::setSize(const label newSize)
template<class T>
void Foam::List<T>::setSize(const label newSize, const T& a)
{
label oldSize = this->size_;
label oldSize = label(this->size_);
this->setSize(newSize);
if (newSize > oldSize)