From 7e63434b9416abbcf3e961a1010a2b1b18ee7113 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Mon, 1 May 2017 10:23:18 -0400 Subject: [PATCH] meaningless changes --- 4ed_file_view.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index 191ff291..d4262f8d 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -2428,17 +2428,18 @@ file_relex_parallel(System_Functions *system, Mem_Options *mem, Editing_File *fi switch (lex_result){ case LexResult_NeedChunk: - ++chunk_index; - chunk = chunks[chunk_index]; - chunk_size = chunk_sizes[chunk_index]; - break; + { + ++chunk_index; + chunk = chunks[chunk_index]; + chunk_size = chunk_sizes[chunk_index]; + }break; case LexResult_NeedTokenMemory: - inline_lex = 0; - goto doublebreak; + { + inline_lex = 0; + }goto doublebreak; - case LexResult_Finished: - goto doublebreak; + case LexResult_Finished: goto doublebreak; } } doublebreak:; @@ -2447,8 +2448,8 @@ file_relex_parallel(System_Functions *system, Mem_Options *mem, Editing_File *fi i32 new_count = cpp_relex_get_new_count(&state, array->count, &relex_array); if (new_count > array->max_count){ i32 new_max = l_round_up_i32(new_count, KB(1)); - array->tokens = (Cpp_Token*) - general_memory_reallocate(general, array->tokens, array->count*sizeof(Cpp_Token), new_max*sizeof(Cpp_Token)); + void *memory = general_memory_reallocate(general, array->tokens, array->count*sizeof(Cpp_Token), new_max*sizeof(Cpp_Token)); + array->tokens = (Cpp_Token*)memory; array->max_count = new_max; }