From b51d836fcc31eadaef34e469c68c1c99e8417958 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 21 Sep 2020 14:59:31 +1000 Subject: Cleanup: balance braces, spelling Keep braces balanced where possible, even with ifdef's as it avoids confusions with editors calculating correct indentation level & finding matching brackets. --- source/blender/blenloader/intern/undofile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/blenloader/intern/undofile.c') diff --git a/source/blender/blenloader/intern/undofile.c b/source/blender/blenloader/intern/undofile.c index 92aec13ecf1..d1f69d35fe5 100644 --- a/source/blender/blenloader/intern/undofile.c +++ b/source/blender/blenloader/intern/undofile.c @@ -253,10 +253,11 @@ bool BLO_memfile_write_file(struct MemFile *memfile, const char *filename) for (chunk = memfile->chunks.first; chunk; chunk = chunk->next) { #ifdef _WIN32 - if ((size_t)write(file, chunk->buf, (uint)chunk->size) != chunk->size) { + if ((size_t)write(file, chunk->buf, (uint)chunk->size) != chunk->size) #else - if ((size_t)write(file, chunk->buf, chunk->size) != chunk->size) { + if ((size_t)write(file, chunk->buf, chunk->size) != chunk->size) #endif + { break; } } -- cgit v1.2.3