Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Commit

Permalink
Fix #40
Browse files Browse the repository at this point in the history
  • Loading branch information
iryont committed Feb 23, 2015
1 parent 15e1012 commit 336f69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileloader.cpp
Expand Up @@ -359,7 +359,7 @@ inline bool FileLoader::readBytes(unsigned char* buffer, unsigned int size, long
m_cache_offset = pos - m_cached_data[i].base;

//get maximun read block size and calculate remaining bytes
reading = std::min(remain, m_cached_data[i].size - m_cache_offset);
reading = std::min(remain, (unsigned long)m_cached_data[i].size - m_cache_offset);
remain = remain - reading;

//read it
Expand Down

0 comments on commit 336f69d

Please sign in to comment.