mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
Fix build on 64bit platforms
This commit is contained in:
parent
01c0f03396
commit
a38acb6c73
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197014
20
net/hlmaster/files/patch-HLServerList.cpp
Normal file
20
net/hlmaster/files/patch-HLServerList.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/HLServerList.cpp.orig 2007-08-03 13:52:50.000000000 +0200
|
||||
+++ src/HLServerList.cpp 2007-08-03 13:53:27.000000000 +0200
|
||||
@@ -73,7 +73,7 @@
|
||||
m_nSkipRequests = 0;
|
||||
|
||||
// initialize challenge number (should be random)
|
||||
- m_nChallengeSeed = (int) &m_pHeadDummyItem;
|
||||
+ m_nChallengeSeed = (intptr_t) &m_pHeadDummyItem;
|
||||
}
|
||||
|
||||
|
||||
@@ -604,7 +604,7 @@
|
||||
if(pItem != NULL)
|
||||
{
|
||||
// get a fresh, random id
|
||||
- pItem->m_nChallengeId = GetRandomChallenge((int)&pItem, (int)nTimestamp);
|
||||
+ pItem->m_nChallengeId = GetRandomChallenge((intptr_t)&pItem, (int)nTimestamp);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user