Skip to content

Commit

Permalink
Fixed: Compiler errors (Qt 5 compatibility, template arguments)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 16, 2014
1 parent 4296e40 commit a58d6db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/libdoomsday/src/filesys/wad.cpp
Expand Up @@ -95,7 +95,7 @@ struct IndexEntry
// To achieve uniformity we apply a percent encoding to the "raw" names.
if(!normName.isEmpty())
{
normName = QString(normName.toAscii().toPercentEncoding());
normName = QString(normName.toLatin1().toPercentEncoding());
}
else
{
Expand Down Expand Up @@ -394,7 +394,7 @@ size_t Wad::readLump(int lumpIdx, uint8_t *buffer, size_t startOffset,
LOGDEV_RES_XVERBOSE("Cache %s on #%i") << (data? "hit" : "miss") << lumpIdx;
if(data)
{
size_t readBytes = de::min(lumpFile.size(), length);
size_t readBytes = de::min(size_t(lumpFile.size()), length);
std::memcpy(buffer, data + startOffset, readBytes);
return readBytes;
}
Expand Down

0 comments on commit a58d6db

Please sign in to comment.