Fixed minor warnings in Xcode build.

This commit is contained in:
Stephen Anthony 2017-03-27 16:54:19 -02:30
parent 2e4849411b
commit 3a8967f349
3 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ bool DelayQueue::save(Serializer& out) const
{ {
try try
{ {
out.putInt(myMembers.size()); out.putInt(uInt32(myMembers.size()));
for(const DelayQueueMember& m: myMembers) for(const DelayQueueMember& m: myMembers)
m.save(out); m.save(out);

View File

@ -54,7 +54,7 @@ bool DelayQueueMember::save(Serializer& out) const
try try
{ {
out.putInt(mySize); out.putInt(mySize);
for(size_t i = 0; i < mySize; ++i) for(uInt32 i = 0; i < mySize; ++i)
{ {
const Entry& e = myEntries[i]; const Entry& e = myEntries[i];
out.putByte(e.address); out.putByte(e.address);
@ -75,8 +75,8 @@ bool DelayQueueMember::load(Serializer& in)
{ {
try try
{ {
mySize = size_t(in.getInt()); mySize = in.getInt();
for(size_t i = 0; i < mySize; ++i) for(uInt32 i = 0; i < mySize; ++i)
{ {
Entry& e = myEntries[i]; Entry& e = myEntries[i];
e.address = in.getByte(); e.address = in.getByte();

View File

@ -62,7 +62,7 @@ class DelayQueueMember : public Serializable
private: private:
vector<Entry> myEntries; vector<Entry> myEntries;
size_t mySize; uInt32 mySize;
private: private:
DelayQueueMember(const DelayQueueMember&) = delete; DelayQueueMember(const DelayQueueMember&) = delete;