1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00

fix compile errors on 64 bit (#256)

This commit is contained in:
bottiger1 2024-06-21 08:44:27 -07:00 committed by GitHub
parent c597bda668
commit b1a7396112
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
#pragma warning( disable : 4284 ) // warning C4284: return type for 'CNetworkVarT<int>::operator ->' is 'int *' (ie; not a UDT or reference to a UDT. Will produce errors if applied using infix notation)
#endif
#define MyOffsetOf( type, var ) ( (int)&((type*)0)->var )
#define MyOffsetOf( type, var ) ( (intptr_t)&((type*)0)->var )
#ifdef _DEBUG
extern bool g_bUseNetworkVars;

View File

@ -47,7 +47,7 @@ public:
bool Defined( const char *pString ) const
{
return m_SymbolTable.Find( pString ) != UTL_INVAL_SYMBOL;
return m_SymbolTable.Find( pString ).IsValid();
}
UtlSymId_t Find( const char *pString ) const