Fix a bunch of warnings in XCode / clang.

This commit is contained in:
Christian Speckner 2017-12-09 20:25:18 +01:00
parent c57253c9e6
commit bff2c7a5e7
2 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ class LinkedObjectPool
#endif
uInt32 capacity() const { return CAPACITY; }
uInt32 size() const { return myList.size(); }
size_t size() const { return myList.size(); }
bool empty() const { return myList.size() == 0; }
bool full() const { return myList.size() >= CAPACITY; }

View File

@ -126,9 +126,9 @@ void RewindManager::compressStates()
uInt64 lastCycle = currentCycle;
double expectedCycles = 76 * 262.0; // == cycles of 1 frame, TODO: use actual number of scanlines
double maxDelta = 0;
uInt32 removeIdx = 0;
size_t removeIdx = 0;
uInt32 idx = myStateList.size() - 1;
size_t idx = myStateList.size() - 1;
for(auto it = myStateList.last(); it != myStateList.first(); --it)
{
cerr << *it << endl << endl; // debug code