ソースを参照

int -> size_t

Jorrit Rouwe 4 年 前
コミット
fb4528686c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Jolt/Core/TickCounter.cpp

+ 1 - 1
Jolt/Core/TickCounter.cpp

@@ -56,7 +56,7 @@ static uint64 sProcessorTicksPerSecond = []() {
 		#endif
 		#endif
 
 
 			// Check if line starts with correct string
 			// Check if line starts with correct string
-			const int num_chars = strlen(cpu_str);
+			const size_t num_chars = strlen(cpu_str);
 			if (strncmp(line.c_str(), cpu_str, num_chars) == 0)
 			if (strncmp(line.c_str(), cpu_str, num_chars) == 0)
 			{
 			{
 				// Find ':'
 				// Find ':'