Skip to content

Commit

Permalink
windows: fix 64bit build( #149 )
Browse files Browse the repository at this point in the history
  • Loading branch information
nillerusr committed Dec 16, 2022
1 parent 9bca259 commit eff77f0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions game/client/client_thinklist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void CClientThinkList::RemoveThinkable( ClientThinkHandle_t hThink )
{
pThink->SetThinkHandle( INVALID_THINK_HANDLE );
}
m_ThinkEntries.Remove( (unsigned long)hThink );
m_ThinkEntries.Remove( (uintp)hThink );
}


Expand Down Expand Up @@ -304,7 +304,7 @@ void CClientThinkList::PerformThinkFunctions()
if ( hThink != INVALID_THINK_HANDLE )
{
// This can happen if the same think handle was removed twice
if ( !m_ThinkEntries.IsInList( (unsigned long)hThink ) )
if ( !m_ThinkEntries.IsInList( (uintp)hThink ) )
continue;

// NOTE: This is necessary for the case where the client entity handle
Expand Down
2 changes: 1 addition & 1 deletion game/client/client_thinklist.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ inline ClientThinkHandle_t CClientThinkList::GetInvalidThinkHandle()

inline CClientThinkList::ThinkEntry_t* CClientThinkList::GetThinkEntry( ClientThinkHandle_t hThink )
{
return &m_ThinkEntries[ (unsigned long)hThink ];
return &m_ThinkEntries[ (uintp)hThink ];
}


Expand Down
2 changes: 1 addition & 1 deletion game/client/clientleafsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ void CClientLeafSystem::ComputeTranslucentRenderLeaf( int count, const LeafIndex

static CUtlVector<RenderableInfo_t *> orderedList; // @MULTICORE (toml 8/30/2006): will need to make non-static if thread this function
static CUtlVector<IClientRenderable *> renderablesToUpdate;
int leaf = 0;
intp leaf = 0;
for ( i = 0; i < count; ++i )
{
leaf = pLeafList[i];
Expand Down
2 changes: 1 addition & 1 deletion public/tier1/memhelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace memutils
}

template<typename T>
inline void set( T *dest, T value, size_t n )
inline void set( T *dest, const T &value, size_t n )
{
do
{
Expand Down

0 comments on commit eff77f0

Please sign in to comment.