Skip to content

Commit 651d8d1

Browse files
Fixes use of wrong identifier when pretty printing bitfield types
1 parent 74be7fb commit 651d8d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansi-c/type2name.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static std::string type2name(
233233
else if(type.id()==ID_incomplete_c_enum)
234234
result +="EN?";
235235
else if(type.id()==ID_c_bit_field)
236-
result+="BF"+type.get_string(ID_size);
236+
result+="BF"+type.get_string(ID_width);
237237
else if(type.id()==ID_vector)
238238
result+="VEC"+type.get_string(ID_size);
239239
else

0 commit comments

Comments
 (0)