diff options
| author | bunnei <bunneidev@gmail.com> | 2018-06-20 16:46:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-20 16:46:14 -0400 |
| commit | c3e95086b66dfa4214892dcddb9fd6f865037c1e (patch) | |
| tree | 859f41acecbdcfcbdf19df80903a045d6e2b0bcb /src/core/file_sys | |
| parent | be1f5dedfbfd88a1e1b13d968d5526ffe14e6d6d (diff) | |
| parent | a3d82ef5d90b02a256087edf9c0124b51b059c18 (diff) | |
Merge pull request #576 from Subv/warnings1
Build: Fixed some MSVC warnings in various parts of the code.
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/partition_filesystem.cpp | 6 | ||||
| -rw-r--r-- | src/core/file_sys/partition_filesystem.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/file_sys/partition_filesystem.cpp b/src/core/file_sys/partition_filesystem.cpp index 808254ecc..86a01a5eb 100644 --- a/src/core/file_sys/partition_filesystem.cpp +++ b/src/core/file_sys/partition_filesystem.cpp @@ -73,21 +73,21 @@ u32 PartitionFilesystem::GetNumEntries() const { return pfs_header.num_entries; } -u64 PartitionFilesystem::GetEntryOffset(int index) const { +u64 PartitionFilesystem::GetEntryOffset(u32 index) const { if (index > GetNumEntries()) return 0; return content_offset + pfs_entries[index].fs_entry.offset; } -u64 PartitionFilesystem::GetEntrySize(int index) const { +u64 PartitionFilesystem::GetEntrySize(u32 index) const { if (index > GetNumEntries()) return 0; return pfs_entries[index].fs_entry.size; } -std::string PartitionFilesystem::GetEntryName(int index) const { +std::string PartitionFilesystem::GetEntryName(u32 index) const { if (index > GetNumEntries()) return ""; diff --git a/src/core/file_sys/partition_filesystem.h b/src/core/file_sys/partition_filesystem.h index 573c90057..65cf572f4 100644 --- a/src/core/file_sys/partition_filesystem.h +++ b/src/core/file_sys/partition_filesystem.h @@ -27,9 +27,9 @@ public: Loader::ResultStatus Load(const std::vector<u8>& file_data, size_t offset = 0); u32 GetNumEntries() const; - u64 GetEntryOffset(int index) const; - u64 GetEntrySize(int index) const; - std::string GetEntryName(int index) const; + u64 GetEntryOffset(u32 index) const; + u64 GetEntrySize(u32 index) const; + std::string GetEntryName(u32 index) const; u64 GetFileOffset(const std::string& name) const; u64 GetFileSize(const std::string& name) const; |
