Skip to content

Commit

Permalink
Add the base type to enum_identity definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
angavrilov committed Mar 20, 2012
1 parent 70eb6b5 commit c90a2d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Enum.pm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ sub render_enum_tables($$$$) {
emit "enum_identity identity_${traits_name}::identity(",
"sizeof($full_name), NULL, ",
type_identity_reference($tag,-parent => 1), ', ',
"\"$name\", 0, -1, NULL);";
"\"$name\", TID($base_type), 0, -1, NULL);";
} 'enums';
return;
}
Expand Down Expand Up @@ -240,7 +240,8 @@ sub render_enum_tables($$$$) {
emit "enum_identity identity_${traits_name}::identity(",
"sizeof($full_name), NULL, ",
type_identity_reference($tag,-parent => 1), ', ',
"\"$name\", $base, ", ($base+$count-1), ", enum_${traits_name}::key_table);";
"\"$name\", TID($base_type), $base, ",
($base+$count-1), ", enum_${traits_name}::key_table);";
} 'enums';
}

Expand Down

0 comments on commit c90a2d4

Please sign in to comment.