From 1cf75db90797e675e7ee3e8efa00cae5e75c5a14 Mon Sep 17 00:00:00 2001 From: Constantine Tarasenkov Date: Fri, 9 Sep 2016 23:44:24 +0300 Subject: [PATCH] Fix for C pointer generator --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index 750001040..cf8b4f089 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5116,7 +5116,7 @@ static void get_c_type(CodeGen *g, TypeTableEntry *type_entry, Buf *out_buf) { const char *const_str = type_entry->data.pointer.is_const ? "const " : ""; buf_resize(out_buf, 0); - buf_appendf(out_buf, "%s*%s", const_str, buf_ptr(&child_buf)); + buf_appendf(out_buf, "%s%s *", const_str, buf_ptr(&child_buf)); break; } case TypeTableEntryIdArray: