summaryrefslogtreecommitdiff
path: root/ptw32_getprocessors.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_getprocessors.c')
-rw-r--r--ptw32_getprocessors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ptw32_getprocessors.c b/ptw32_getprocessors.c
index ddb387a..01dfa3a 100644
--- a/ptw32_getprocessors.c
+++ b/ptw32_getprocessors.c
@@ -55,15 +55,15 @@
int
ptw32_getprocessors(int * count)
{
- DWORD vProcessCPUs;
- DWORD vSystemCPUs;
+ DWORD_PTR vProcessCPUs;
+ DWORD_PTR vSystemCPUs;
int result = 0;
if (GetProcessAffinityMask(GetCurrentProcess(),
&vProcessCPUs,
&vSystemCPUs))
{
- DWORD bit;
+ DWORD_PTR bit;
int CPUs = 0;
for (bit = 1; bit != 0; bit <<= 1)