Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed seeking within read buffers.
  • Loading branch information
icculus committed Sep 25, 2017
1 parent 425131c commit 3d88173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physfs.c
Expand Up @@ -2889,7 +2889,7 @@ int PHYSFS_seek(PHYSFS_File *handle, PHYSFS_uint64 pos)
/* backward? */
((offset < 0) && (((size_t) -offset) <= fh->bufpos)) )
{
fh->bufpos += (PHYSFS_uint32) offset;
fh->bufpos = (size_t) (((PHYSFS_sint64) fh->bufpos) + offset);
return 1; /* successful seek */
} /* if */
} /* if */
Expand Down

0 comments on commit 3d88173

Please sign in to comment.