VFS: Fix sign warning
Jeffrey Pfau jeffrey@endrift.com
Mon, 22 Jun 2015 01:38:40 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/util/vfs.c
→
src/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) {