all repos — mgba @ 42a887369feb1533764418803d64006aee4e6f5e

mGBA Game Boy Advance Emulator

VFS: Fix sign warning
Jeffrey Pfau jeffrey@endrift.com
Mon, 22 Jun 2015 01:38:40 -0700
commit

42a887369feb1533764418803d64006aee4e6f5e

parent

86a36853edc869ddd026906b2c641aa0871e93e3

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/util/vfs.csrc/util/vfs.c

@@ -36,7 +36,7 @@ #endif

} ssize_t VFileReadline(struct VFile* vf, char* buffer, size_t size) { - ssize_t bytesRead = 0; + size_t bytesRead = 0; while (bytesRead < size - 1) { ssize_t newRead = vf->read(vf, &buffer[bytesRead], 1); if (newRead <= 0) {