1
0
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:
Tilman Keskinoz 2007-08-03 11:55:02 +00:00
parent 01c0f03396
commit a38acb6c73
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197014

View 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);
}
}