summaryrefslogtreecommitdiff
blob: b7835e5973ac71dd5e85a577e622278dc574894f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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