From 9a08de93b64a332af9f581ef15b208e153fa19f0 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 5 Nov 2019 13:37:43 -0500 Subject: fix incorrect type name on bit field pointers --- src/analyze.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/analyze.cpp') 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) { -- cgit v1.2.3