Skip to content

Commit c684d91

Browse files
LostGamerHLnillerusr
authored andcommitted
windows: fix 64bit build( #149 )
1 parent 9bca259 commit c684d91

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

game/client/client_thinklist.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void CClientThinkList::RemoveThinkable( ClientThinkHandle_t hThink )
158158
{
159159
pThink->SetThinkHandle( INVALID_THINK_HANDLE );
160160
}
161-
m_ThinkEntries.Remove( (unsigned long)hThink );
161+
m_ThinkEntries.Remove( (uintp)hThink );
162162
}
163163

164164

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

310310
// NOTE: This is necessary for the case where the client entity handle

game/client/client_thinklist.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ inline ClientThinkHandle_t CClientThinkList::GetInvalidThinkHandle()
121121

122122
inline CClientThinkList::ThinkEntry_t* CClientThinkList::GetThinkEntry( ClientThinkHandle_t hThink )
123123
{
124-
return &m_ThinkEntries[ (unsigned long)hThink ];
124+
return &m_ThinkEntries[ (uintp)hThink ];
125125
}
126126

127127

game/client/clientleafsystem.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ void CClientLeafSystem::ComputeTranslucentRenderLeaf( int count, const LeafIndex
13371337

13381338
static CUtlVector<RenderableInfo_t *> orderedList; // @MULTICORE (toml 8/30/2006): will need to make non-static if thread this function
13391339
static CUtlVector<IClientRenderable *> renderablesToUpdate;
1340-
int leaf = 0;
1340+
intp leaf = 0;
13411341
for ( i = 0; i < count; ++i )
13421342
{
13431343
leaf = pLeafList[i];

public/tier1/memhelpers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace memutils
1919
}
2020

2121
template<typename T>
22-
inline void set( T *dest, T value, size_t n )
22+
inline void set( T *dest, const T &value, size_t n )
2323
{
2424
do
2525
{

0 commit comments

Comments
 (0)