Resolve unsigned comparison error w/ MSVC

This commit is contained in:
Campbell Barton 2018-04-01 07:41:23 +02:00
parent b6ba3c682d
commit 473f17b3d5
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ bool BLO_memfile_write_file(struct MemFile *memfile, const char *filename)
}
for (chunk = memfile->chunks.first; chunk; chunk = chunk->next) {
if (write(file, chunk->buf, chunk->size) != chunk->size) {
if ((size_t)write(file, chunk->buf, chunk->size) != chunk->size) {
break;
}
}