Skip to content

Commit

Permalink
Add FIXME.
Browse files Browse the repository at this point in the history
  • Loading branch information
viewizard committed Oct 16, 2018
1 parent 63117a4 commit 9c5d996
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/vfs/vfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ size_t sFILE::fread(void *buffer, size_t size, size_t count)
*/
int sFILE::fseek(long offset, int origin)
{
// FIXME offset could be positive or negative, fix logic and use proper types (don't allow signed/unsigned comparison)

switch (origin) {
case SEEK_CUR:
if ((Pos + offset) > Size)
Expand Down

0 comments on commit 9c5d996

Please sign in to comment.