Fix some LGTM alerts

This commit is contained in:
zhupengfei
2020-08-07 16:03:22 +08:00
parent 7c0dc35cab
commit b06440aefb
6 changed files with 27 additions and 18 deletions
+2
View File
@@ -2,6 +2,8 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <mutex>
#include <string>
+2
View File
@@ -4,6 +4,8 @@
// Modified from Citra's implementation to allow multiple instances
#pragma once
#include <array>
#include <optional>
#include <vector>
+1 -1
View File
@@ -234,7 +234,7 @@ void TitleMetadata::Print() const {
continue;
LOG_DEBUG(Service_FS, "Content chunks for content info index {}:", i);
for (u16 j = index; j < index + count; j++) {
for (u16 j = index; j < static_cast<u16>(index + count); j++) {
// Don't attempt to print content we don't have
if (j > tmd_body.content_count)
break;