mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 03:58:14 +03:00
Fixed compiler warnings on x64 due to HashCode returning an int
This commit is contained in:
parent
95a244fde0
commit
3e23ed9e24
2 changed files with 2 additions and 2 deletions
|
@ -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<>
|
||||
|
|
|
@ -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<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue