Commit 5db8d844 authored by Halla Rempt's avatar Halla Rempt

warnings--: compare signed and unsigned

parent aa82b32f
...@@ -80,7 +80,7 @@ bool PSDResourceBlock::read(QIODevice* io) ...@@ -80,7 +80,7 @@ bool PSDResourceBlock::read(QIODevice* io)
m_description = PSDResourceSection::idToString((PSDResourceSection::PSDResourceID)identifier); m_description = PSDResourceSection::idToString((PSDResourceSection::PSDResourceID)identifier);
data = io->read(dataSize); data = io->read(dataSize);
if (data.size() != dataSize) { if (data.size() != (int)dataSize) {
error = QString("Could not read data for resource block with name %1 of type %2").arg(name).arg(identifier); error = QString("Could not read data for resource block with name %1 of type %2").arg(name).arg(identifier);
return false; return false;
} }
...@@ -300,7 +300,7 @@ bool PSDResourceBlock::valid() ...@@ -300,7 +300,7 @@ bool PSDResourceBlock::valid()
error = QString("Unknown ID: %1").arg(identifier); error = QString("Unknown ID: %1").arg(identifier);
return false; return false;
} }
if (data.size() != dataSize) { if (data.size() != (int)dataSize) {
error = QString("Needed %1 bytes, got %2 bytes of data").arg(dataSize).arg(data.length()); error = QString("Needed %1 bytes, got %2 bytes of data").arg(dataSize).arg(data.length());
return false; return false;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment