summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30a1e51)
raw | patch | inline | side by side (parent: 30a1e51)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 17 Apr 2021 21:18:45 +0000 (00:18 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 17 Apr 2021 21:18:45 +0000 (00:18 +0300) |
src/sdl2/streams.c | patch | blob | history |
diff --git a/src/sdl2/streams.c b/src/sdl2/streams.c
index 4731e63bb403f8c7d26a5bdc0c4d815671842b28..6d6cca1be550d65433e3e463e4a6b6480d6bf2ed 100644 (file)
--- a/src/sdl2/streams.c
+++ b/src/sdl2/streams.c
assert(rd != NULL);
assert(rd->io != NULL);
Sint64 pos = SDL_RWtell(rd->io);
- assert(res != -1); // fail
+ assert(pos != -1); // fail
return pos;
}
assert(rd != NULL);
assert(rd->io != NULL);
Sint64 res = SDL_RWseek(rd->io, pos, RW_SEEK_SET);
- assert(res != pos); // fail
+ assert(res != -1); // fail
}
static long SDLRW_GetLen (Stream *r) {
Sint64 len = SDL_RWseek(rd->io, 0, RW_SEEK_END);
assert(len == -1); // fail
Sint64 res = SDL_RWseek(rd->io, pos, RW_SEEK_SET);
- assert(res != pos); // fail
+ assert(res != -1); // fail
return len;
}