Skip to content

Commit

Permalink
Fix the enum type so that the enum in the union can be interpreted co…
Browse files Browse the repository at this point in the history
…rrectly (#22)
  • Loading branch information
wangra-google authored Oct 20, 2023
1 parent 6492a00 commit 2ebef20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dive_core/generateAdrenoHeader.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def outputEnums(pm4_packet_file_h, enums):
if add_replace_in_dict:
enum_dict[enum_value] = enum_value_name

pm4_packet_file_h.write("enum %s\n" % enum_name)
pm4_packet_file_h.write("enum %s: uint32_t\n" % enum_name)
pm4_packet_file_h.write("{\n")
for enum_value in enum_dict:
pm4_packet_file_h.write("\t%s = 0x%x,\n" % (enum_dict[enum_value], enum_value))
Expand Down

0 comments on commit 2ebef20

Please sign in to comment.