summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authorglx22 <glx22@users.noreply.github.com>2019-03-28 00:09:33 +0100
committerGitHub <noreply@github.com>2019-03-28 00:09:33 +0100
commit66dd7c3879123bb99b712375b66b577f81d53a96 (patch)
tree6231635658dab5ba63b776e9350884c083617cb1 /src/fios.h
parente817951bfdc229b404d5fec188c67f5202a0e774 (diff)
downloadopenttd-66dd7c3879123bb99b712375b66b577f81d53a96.tar.xz
Fix: MSVC warnings (#7423)
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fios.h b/src/fios.h
index 52d85ad9b..6ae0550d1 100644
--- a/src/fios.h
+++ b/src/fios.h
@@ -128,7 +128,7 @@ public:
* Get the number of files in the list.
* @return The number of files stored in the list.
*/
- inline uint Length() const
+ inline size_t Length() const
{
return this->files.size();
}
@@ -155,7 +155,7 @@ public:
* Get a pointer to the indicated file information. File information must exist.
* @return Address of the indicated existing file information.
*/
- inline const FiosItem *Get(uint index) const
+ inline const FiosItem *Get(size_t index) const
{
return this->files.data() + index;
}
@@ -164,12 +164,12 @@ public:
* Get a pointer to the indicated file information. File information must exist.
* @return Address of the indicated existing file information.
*/
- inline FiosItem *Get(uint index)
+ inline FiosItem *Get(size_t index)
{
return this->files.data() + index;
}
- inline const FiosItem &operator[](uint index) const
+ inline const FiosItem &operator[](size_t index) const
{
return this->files[index];
}
@@ -178,7 +178,7 @@ public:
* Get a reference to the indicated file information. File information must exist.
* @return The requested file information.
*/
- inline FiosItem &operator[](uint index)
+ inline FiosItem &operator[](size_t index)
{
return this->files[index];
}