Skip to content

Commit

Permalink
Don't convert UInt to Int through type-assert (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored and Gnimuc committed Apr 6, 2021
1 parent 734f6d1 commit 246a061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cursor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ getEnumDeclIntegerType(c::CXCursor) = clang_getEnumDeclIntegerType(c)
getEnumDeclIntegerType(c::CLEnumDecl)::CLType = clang_getEnumDeclIntegerType(c)

"""
value(c::CLCursor) -> Int
value(c::CLCursor) -> Integer
Return the integer value of an enum constant declaration.
"""
function value(c::CLEnumConstantDecl)::Int
function value(c::CLEnumConstantDecl)::Integer
typeKind = kind(getCursorType(c))
if typeKind == CXType_Int || typeKind == CXType_Long || typeKind == CXType_LongLong
return clang_getEnumConstantDeclValue(c)
Expand Down

0 comments on commit 246a061

Please sign in to comment.