From f60dc7b0a7f8bf8122df0fa3b4d12603a9775f87 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sat, 22 Oct 2016 19:41:58 +0100 Subject: Minor Style Fixes --- src/codegen/codegen.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/codegen/codegen.cpp') diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp index 7d84a6c7b..c06b6d527 100644 --- a/src/codegen/codegen.cpp +++ b/src/codegen/codegen.cpp @@ -7,8 +7,9 @@ struct ssaGen { }; b32 ssa_gen_init(ssaGen *s, Checker *c) { - if (global_error_collector.count != 0) + if (global_error_collector.count != 0) { return false; + } isize tc = c->parser->total_token_count; if (tc < 2) { @@ -43,7 +44,7 @@ String ssa_mangle_name(ssaGen *s, String path, String name) { AstFile *file = *map_get(&info->files, hash_string(path)); char *str = gb_alloc_array(a, char, path.len+1); - gb_memcopy(str, path.text, path.len); + gb_memmove(str, path.text, path.len); str[path.len] = 0; for (isize i = 0; i < path.len; i++) { if (str[i] == '\\') { -- cgit v1.2.3