aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorConstantine Tarasenkov <constantine@protonmail.com>2016-09-09 23:44:24 +0300
committerConstantine Tarasenkov <constantine@protonmail.com>2016-09-09 23:44:24 +0300
commit1cf75db90797e675e7ee3e8efa00cae5e75c5a14 (patch)
tree23c32461698953dff5e7425d136056744e453f6d /src/codegen.cpp
parentfc9ff13fb610893ce1226c5c439e831f8b0569ee (diff)
downloadzig-1cf75db90797e675e7ee3e8efa00cae5e75c5a14.tar.gz
zig-1cf75db90797e675e7ee3e8efa00cae5e75c5a14.zip
Fix for C pointer generator
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 7500010409..cf8b4f0891 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: