Commit f5b57167 authored by hybrid's avatar hybrid

Fix a compiler warning and a comment error.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@958 dfc29bdd-3216-0410-991c-e03cc46cb475
parent a5de2223
......@@ -19,7 +19,7 @@ namespace io
virtual ~IWriteFile() {};
//! Reads an amount of bytes from the file.
//! Writes an amount of bytes to the file.
//! \param buffer: Pointer to buffer of bytes to write.
//! \param sizeToWrite: Amount of bytes to write to the file.
//! \return Returns how much bytes were written.
......
......@@ -52,7 +52,7 @@ s32 CLimitReadFile::read(void* buffer, u32 sizeToRead)
if (pos >= AreaEnd)
return 0;
if (pos + sizeToRead >= AreaEnd)
if (pos + (long)sizeToRead >= AreaEnd)
sizeToRead = AreaEnd - pos;
return File->read(buffer, sizeToRead);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment