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:
parent
c597bda668
commit
b1a7396112
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user