diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-05 13:37:43 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-05 13:37:43 -0500 |
| commit | 9a08de93b64a332af9f581ef15b208e153fa19f0 (patch) | |
| tree | 0c3baee6423b40eda3ba57e9d41041f6c9fbd3b8 /src/analyze.cpp | |
| parent | 9b4a52916472f39a0a9e6d0807240e304a9e9ca6 (diff) | |
| download | zig-9a08de93b64a332af9f581ef15b208e153fa19f0.tar.gz zig-9a08de93b64a332af9f581ef15b208e153fa19f0.zip | |
fix incorrect type name on bit field pointers
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 69eb76ca68..66e1f8984b 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -552,9 +552,9 @@ ZigType *get_pointer_to_type_extra2(CodeGen *g, ZigType *child_type, bool is_con const_str, volatile_str, allow_zero_str, buf_ptr(&child_type->name)); } else if (byte_alignment == 0) { assert(vector_index == VECTOR_INDEX_NONE); - buf_appendf(&entry->name, "%salign(:%" PRIu32 ":%" PRIu32 ":%" PRIu32 ") %s%s%s%s", + buf_appendf(&entry->name, "%salign(:%" PRIu32 ":%" PRIu32 ") %s%s%s%s", star_str, - bit_offset_in_host, host_int_bytes, vector_index, + bit_offset_in_host, host_int_bytes, const_str, volatile_str, allow_zero_str, buf_ptr(&child_type->name)); } else if (vector_index == VECTOR_INDEX_NONE) { |
