mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix narrowing conversion warnings for CHashTableT::Count
This commit is contained in:
parent
83888a5ed6
commit
b48f82ca5d
@ -53,7 +53,7 @@ public:
|
||||
}
|
||||
|
||||
/** item count */
|
||||
inline int Count() const
|
||||
inline size_t Count() const
|
||||
{
|
||||
return this->data.size();
|
||||
}
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user