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
{
out.putInt(myMembers.size());
out.putInt(uInt32(myMembers.size()));
for(const DelayQueueMember& m: myMembers)
m.save(out);

View File

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

View File

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