Resolve unsigned comparison error w/ MSVC
This commit is contained in:
parent
b6ba3c682d
commit
473f17b3d5
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue