Index: karlyriceditor-1.4/src/kfn_file_parser.cpp =================================================================== --- karlyriceditor-1.4.orig/src/kfn_file_parser.cpp +++ karlyriceditor-1.4/src/kfn_file_parser.cpp @@ -311,7 +311,7 @@ QByteArray KFNFileParser::extract( const while ( total_in < entry.length_in ) { - int toRead = qMin( sizeof(buffer), (unsigned int) entry.length_in - total_in ); + int toRead = qMin( sizeof(buffer), (size_t) entry.length_in - total_in ); int bytesRead = m_file.read( buffer, toRead ); // We might need to write less than we read since the file is rounded to 16 bytes