Skip to content

Commit

Permalink
SDL_rwops.c: update style
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-sloth committed Aug 16, 2024
1 parent 62af67d commit 62d86dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file/SDL_rwops.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static Sint64 SDLCALL stdio_seek(SDL_RWops *context, Sint64 offset, int whence)
#endif

/* don't make a possibly-costly API call for the noop seek from SDL_RWtell */
is_noop = (whence == RW_SEEK_CUR && offset == 0);
is_noop = (whence == RW_SEEK_CUR) && (offset == 0);

if (is_noop || fseek(context->hidden.stdio.fp, (fseek_off_t)offset, stdiowhence) == 0) {
Sint64 pos = ftell(context->hidden.stdio.fp);
Expand Down

0 comments on commit 62d86dc

Please sign in to comment.