authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-09-10 13:53:47-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2016-09-10 13:53:47-04:00
log100990b052be249c23743140d19ced37d463b51d
tree23c32461698953dff5e7425d136056744e453f6d
parentfc9ff13fb610893ce1226c5c439e831f8b0569ee
parent1cf75db90797e675e7ee3e8efa00cae5e75c5a14

Merge pull request #187 from procedural/c-pointer-fix

Fix for C pointer generator

1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen.cpp+1-1
......@@ -5116,7 +5116,7 @@ static void get_c_type(CodeGen *g, TypeTableEntry *type_entry, Buf *out_buf) {
51165116
51175117 const char *const_str = type_entry->data.pointer.is_const ? "const " : "";
51185118 buf_resize(out_buf, 0);
5119 buf_appendf(out_buf, "%s*%s", const_str, buf_ptr(&child_buf));
5119 buf_appendf(out_buf, "%s%s *", const_str, buf_ptr(&child_buf));
51205120 break;
51215121 }
51225122 case TypeTableEntryIdArray: