Fix narrowing conversion warnings for CHashTableT::Count

This commit is contained in:
Jonathan G Rennison 2024-09-08 09:53:13 +01:00
parent 83888a5ed6
commit b48f82ca5d
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ public:
}
/** item count */
inline int Count() const
inline size_t Count() const
{
return this->data.size();
}

View File

@ -51,13 +51,13 @@ public:
/** return number of open nodes */
inline int OpenCount()
{
return m_open.Count();
return (int)m_open.Count();
}
/** return number of closed nodes */
inline int ClosedCount()
{
return m_closed.Count();
return (int)m_closed.Count();
}
/** allocate new data item from m_arr */