Avoid warnings

This commit is contained in:
Moritz Bunkus 2010-06-19 11:12:45 +02:00
parent 7422f97e02
commit c8471907a3
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ mm_write_cache_io_c::setFilePointer(int64 offset,
: seek_end == mode ? get_size() - offset
: getFilePointer() + offset;
if (new_pos == getFilePointer())
if (new_pos == static_cast<int64_t>(getFilePointer()))
return;
flush_cache();

View File

@ -21,7 +21,7 @@
class MTX_DLL_API mm_write_cache_io_c: public mm_proxy_io_c {
protected:
memory_cptr m_cache;
int m_cache_pos;
size_t m_cache_pos;
public:
mm_write_cache_io_c(mm_io_c *p_out, int cache_size, bool p_delete_out = true);