@@ -146,9 +146,10 @@ void RandomAccessFile::ReadBlock(void *p
* Skip \a n bytes ahead in the file.
* @param n Number of bytes to skip reading.
*/
void RandomAccessFile::SkipBytes(int n)
void RandomAccessFile::SkipBytes(size_t n)
{
int remaining = this->buffer_end - this->buffer;
assert(this->buffer_end >= this->buffer);
size_t remaining = this->buffer_end - this->buffer;
if (n <= remaining) {
this->buffer += n;
} else {
@@ -51,7 +51,7 @@ public:
uint32_t ReadDword();
void ReadBlock(void *ptr, size_t size);
void SkipBytes(int n);
void SkipBytes(size_t n);
};
#endif /* RANDOM_ACCESS_FILE_TYPE_H */
Status change: