Jelajahi Sumber

Fix compilation error in gcc-specific code

Marc Legendre 9 tahun lalu
induk
melakukan
bf351b8442
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      Source/BansheeCore/Source/BsProfilerCPU.cpp

+ 3 - 3
Source/BansheeCore/Source/BsProfilerCPU.cpp

@@ -69,8 +69,8 @@ namespace BansheeEngine
 	inline UINT64 ProfilerCPU::TimerPrecise::getNumCycles() 
 	inline UINT64 ProfilerCPU::TimerPrecise::getNumCycles() 
 	{
 	{
 #if BS_COMPILER == BS_COMPILER_GNUC
 #if BS_COMPILER == BS_COMPILER_GNUC
-		int a = 0;
-		int b[4];
+		unsigned int a = 0;
+		unsigned int b[4];
 		__get_cpuid(a, &b[0], &b[1], &b[2], &b[3]);
 		__get_cpuid(a, &b[0], &b[1], &b[2], &b[3]);
 
 
 #if BS_ARCH_TYPE == BS_ARCHITECTURE_x86_64
 #if BS_ARCH_TYPE == BS_ARCHITECTURE_x86_64
@@ -1016,4 +1016,4 @@ namespace BansheeEngine
 	{
 	{
 		return ProfilerCPU::instance();
 		return ProfilerCPU::instance();
 	}
 	}
-}
+}