zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 100990b052be249c23743140d19ced37d463b51d (tree)
parent fc9ff13fb610893ce1226c5c439e831f8b0569ee
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Sat, 10 Sep 2016 13:53:47 -0400

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

Fix for C pointer generator
Diffstat:
Msrc/codegen.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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: