AnvilStats: Fixed Win64 compilation.
This commit is contained in:
parent
d783753cb5
commit
ccaa51f913
@ -272,7 +272,7 @@ extern const char * GetEntityTypeString(eEntityType a_EntityType)
|
|||||||
int GetNumCores(void)
|
int GetNumCores(void)
|
||||||
{
|
{
|
||||||
// Get number of cores by querying the system process affinity mask (Windows-specific)
|
// Get number of cores by querying the system process affinity mask (Windows-specific)
|
||||||
DWORD Affinity, ProcAffinity;
|
DWORD_PTR Affinity, ProcAffinity;
|
||||||
GetProcessAffinityMask(GetCurrentProcess(), &ProcAffinity, &Affinity);
|
GetProcessAffinityMask(GetCurrentProcess(), &ProcAffinity, &Affinity);
|
||||||
int NumCores = 0;
|
int NumCores = 0;
|
||||||
while (Affinity > 0)
|
while (Affinity > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user