mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
fix compile errors on 64 bit (#256)
This commit is contained in:
@ -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)
|
#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
|
#endif
|
||||||
|
|
||||||
#define MyOffsetOf( type, var ) ( (int)&((type*)0)->var )
|
#define MyOffsetOf( type, var ) ( (intptr_t)&((type*)0)->var )
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
extern bool g_bUseNetworkVars;
|
extern bool g_bUseNetworkVars;
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
|
|
||||||
bool Defined( const char *pString ) const
|
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
|
UtlSymId_t Find( const char *pString ) const
|
||||||
|
Reference in New Issue
Block a user