[Scummvm-git-logs] scummvm master -> fc20dd9a43c944360a222aec23eb504907d8a194
lephilousophe
lephilousophe at users.noreply.github.com
Sun Mar 7 11:07:40 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
fc20dd9a43 ICB: Fix uint/uint32 discrepancies
Commit: fc20dd9a43c944360a222aec23eb504907d8a194
https://github.com/scummvm/scummvm/commit/fc20dd9a43c944360a222aec23eb504907d8a194
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2021-03-07T12:07:27+01:00
Commit Message:
ICB: Fix uint/uint32 discrepancies
Changed paths:
engines/icb/common/px_array.h
diff --git a/engines/icb/common/px_array.h b/engines/icb/common/px_array.h
index 3977f140c6..6fe453fe8d 100644
--- a/engines/icb/common/px_array.h
+++ b/engines/icb/common/px_array.h
@@ -57,7 +57,7 @@ public:
uint32 Add(const Type &f); // Add an item.
- Type &operator[](uint); // Give access to an entry
+ Type &operator[](uint32); // Give access to an entry
const Type &operator[](uint32 i) const;
void SetSize(uint32 n) { ResizeArray(n); }
@@ -69,7 +69,7 @@ private:
Type **m_contents; // A pointer to pointers to the objects
- void ResizeArray(uint); // Change the size of the array
+ void ResizeArray(uint32); // Change the size of the array
};
MY_TEMPLATE
@@ -158,7 +158,7 @@ MY_TEMPLATE class rcAutoPtrArray {
Type **m_contents; // A pointer to pointers to the objects
- void ResizeArray(uint); // Change the size of the array
+ void ResizeArray(uint32); // Change the size of the array
public:
explicit rcAutoPtrArray() { // Construct an empty array
m_noContents = m_userPosition = 0;
@@ -173,11 +173,11 @@ public:
return (m_userPosition - 1);
}
- Type *&operator[](uint); // Give access to an entry
- const Type *&operator[](uint) const; // Give access to an entry
+ Type *&operator[](uint32); // Give access to an entry
+ const Type *&operator[](uint32) const; // Give access to an entry
void Reset();
- void RemoveAndShuffle(uint); // Remove an object from the array
+ void RemoveAndShuffle(uint32); // Remove an object from the array
void SetSize(uint32 n) { ResizeArray(n); }
// Super dangerous, but faster, access to the array
@@ -257,7 +257,7 @@ template <class Type> class rcIntArray {
uint32 m_userPosition; // Where the next add position goes
Type *m_contents;
- void ResizeArray(uint); // Change the size of the array
+ void ResizeArray(uint32); // Change the size of the array
public:
explicit rcIntArray() { // Construct an empty array
@@ -284,8 +284,8 @@ public:
uint32 Add(Type f); // Add an integer. Only makes sense if the resize step is one
- Type &operator[](uint); // Give access to an entry
- const Type operator[](uint) const; // Give access to an entry
+ Type &operator[](uint32); // Give access to an entry
+ const Type operator[](uint32) const; // Give access to an entry
void Reset();
void SetSize(uint32 n) { ResizeArray(n); }
More information about the Scummvm-git-logs
mailing list