filestream_eof - prevent 'improper usage of negative value'

This commit is contained in:
twinaphex 2016-06-05 19:20:08 +02:00
parent 414ced5901
commit 7e2a077bd5
1 changed files with 2 additions and 2 deletions

View File

@ -369,8 +369,8 @@ error:
int filestream_eof(RFILE *stream)
{
ssize_t current_position = filestream_tell(stream);
ssize_t end_position = filestream_seek(stream, 0, SEEK_END);
size_t current_position = filestream_tell(stream);
size_t end_position = filestream_seek(stream, 0, SEEK_END);
filestream_seek(stream, current_position, SEEK_SET);