Skip to content

Commit

Permalink
Add char types tp enum alias link
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd committed Dec 7, 2024
1 parent 572eddf commit d0cffb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/generator/passes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ function (x::LinkEnumAlias)(dag::ExprDAG, options::Dict)

ty = getTypedefDeclUnderlyingType(node.cursor) |> getCanonicalType
typeKind = kind(ty)
typeKind == CXType_Int || typeKind == CXType_Short || typeKind == CXType_Long || typeKind == CXType_LongLong ||
typeKind == CXType_UInt || typeKind == CXType_UShort || typeKind == CXType_ULong || typeKind == CXType_ULongLong ||
typeKind == CXType_Int || typeKind == CXType_Short || typeKind == CXType_Long || typeKind == CXType_LongLong || typeKind == CXType_Char_S ||
typeKind == CXType_UInt || typeKind == CXType_UShort || typeKind == CXType_ULong || typeKind == CXType_ULongLong || typeKind == CXType_UChar ||
continue

for (tagid, j) in dag.tags
Expand Down
2 changes: 1 addition & 1 deletion test/include/enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ enum X {
C,
};

typedef uint32_t X;
typedef uint32_t X;

0 comments on commit d0cffb3

Please sign in to comment.