Browse Source

Bugfix: cpu: Fix warning on Win64

James Z.M. Gao 13 years ago
parent
commit
8f3488795b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-cpu.c

+ 2 - 2
driver-cpu.c

@@ -726,8 +726,8 @@ static void cpu_detect()
 	// Reckon number of cores in the box
 	#if defined(WIN32)
 	{
-		DWORD system_am;
-		DWORD process_am;
+		DWORD_PTR system_am;
+		DWORD_PTR process_am;
 		BOOL ok = GetProcessAffinityMask(
 			GetCurrentProcess(),
 			&system_am,