Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-04-01 08:41:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-01 08:41:23 +0300
commit473f17b3d557adbb06b89e0a186be48a0129086d (patch)
treea9957f64f7e506516ab097418c3e658de3470827 /source/blender/blenloader/intern/undofile.c
parentb6ba3c682dd6615e760905572a5bcd69bb46371f (diff)
Resolve unsigned comparison error w/ MSVC
Diffstat (limited to 'source/blender/blenloader/intern/undofile.c')
-rw-r--r--source/blender/blenloader/intern/undofile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/undofile.c b/source/blender/blenloader/intern/undofile.c
index 287936e276e..f6584ecf25f 100644
--- a/source/blender/blenloader/intern/undofile.c
+++ b/source/blender/blenloader/intern/undofile.c
@@ -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;
}
}