Fixed compiler warnings on x64 due to HashCode returning an int

This commit is contained in:
L 2023-01-30 00:24:07 +01:00
parent 95a244fde0
commit 3e23ed9e24
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ int HashCode< unsigned char >( const unsigned char& key )
template<>
int HashCode< unsigned char * >( unsigned char * const& key )
{
return ( int )key;
return (int)(size_t)key;
}
template<>

View file

@ -344,7 +344,7 @@ template<>
int HashCode< Event * >( Event * const& key )
{
// can't use key->eventnum because eventnum will be assigned from con_set
return ( int )key;
return (int)(size_t)key;
}
template<>