From 6fd990f46b1033caa6593e0902dd788d20ec1014 Mon Sep 17 00:00:00 2001 From: GAMMACASE Date: Sun, 1 Oct 2023 17:27:56 +0300 Subject: [PATCH] Few minor fixes --- public/eiface.h | 3 ++- public/tier0/platform.h | 2 +- public/tier1/strtools.h | 2 +- public/tier1/utlsymbollarge.h | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/eiface.h b/public/eiface.h index c85a6234..dd35db92 100644 --- a/public/eiface.h +++ b/public/eiface.h @@ -111,8 +111,9 @@ struct bbox_t Vector maxs; }; -struct CEntityIndex +class CEntityIndex { +public: CEntityIndex( int index ) { _index = index; diff --git a/public/tier0/platform.h b/public/tier0/platform.h index 21cecf37..9ad20af4 100644 --- a/public/tier0/platform.h +++ b/public/tier0/platform.h @@ -1347,7 +1347,7 @@ inline void Destruct( T* pMemory ) pMemory->~T(); #ifdef _DEBUG - memset( pMemory, 0xDD, sizeof(T) ); + memset( (void*)pMemory, 0xDD, sizeof(T) ); #endif } diff --git a/public/tier1/strtools.h b/public/tier1/strtools.h index 520a3162..7d37a515 100644 --- a/public/tier1/strtools.h +++ b/public/tier1/strtools.h @@ -16,9 +16,9 @@ #elif POSIX #include #include -#include #endif +#include #include #include diff --git a/public/tier1/utlsymbollarge.h b/public/tier1/utlsymbollarge.h index bb704e60..9ac51118 100644 --- a/public/tier1/utlsymbollarge.h +++ b/public/tier1/utlsymbollarge.h @@ -120,7 +120,7 @@ inline uint32 CUtlSymbolLarge_Hash( bool CASEINSENSITIVE, const char *pString, i return ( CASEINSENSITIVE ? HashStringCaseless( pString ) : HashString( pString ) ); } -typedef uint32 LargeSymbolTableHashDecoration_t; +typedef uint64 LargeSymbolTableHashDecoration_t; // The structure consists of the hash immediately followed by the string data struct CUtlSymbolTableLargeBaseTreeEntry_t