diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-06-22 17:00:47 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-06-22 17:53:24 -0400 |
| commit | 43daebbc667294d1377e90564b6d64ad820ebb09 (patch) | |
| tree | f766d81773ef4acd64550ece9cb3cb90a26e9ef1 | |
| parent | 83dab8dd365e890189c3608dd9aa4a0ad532bba0 (diff) | |
DSPTool: Get rid of unnecessary casts
| -rw-r--r-- | Source/DSPTool/DSPTool.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/DSPTool/DSPTool.cpp b/Source/DSPTool/DSPTool.cpp index 04d18293ea..148c0e44a8 100644 --- a/Source/DSPTool/DSPTool.cpp +++ b/Source/DSPTool/DSPTool.cpp @@ -283,7 +283,7 @@ static bool PerformAssembly(const std::string& input_name, const std::string& ou std::string currentSource; const std::vector<std::string> files = GetAssemblerFiles(source); - int lines = static_cast<int>(files.size()); + std::size_t lines = files.size(); if (lines == 0) { printf("ERROR: Must specify at least one file\n"); @@ -292,7 +292,7 @@ static bool PerformAssembly(const std::string& input_name, const std::string& ou std::vector<std::vector<u16>> codes(lines); - for (int i = 0; i < lines; i++) + for (std::size_t i = 0; i < lines; i++) { if (!File::ReadFileToString(files[i], currentSource)) { @@ -308,7 +308,7 @@ static bool PerformAssembly(const std::string& input_name, const std::string& ou } if (output_size) { - printf("%s: %d\n", files[i].c_str(), (int)codes[i].size()); + printf("%s: %zu\n", files[i].c_str(), codes[i].size()); } } } @@ -328,7 +328,7 @@ static bool PerformAssembly(const std::string& input_name, const std::string& ou if (output_size) { - printf("%s: %d\n", input_name.c_str(), (int)code.size()); + printf("%s: %zu\n", input_name.c_str(), code.size()); } if (!output_name.empty()) |
