Skip to content

Commit

Permalink
Resolve #1093
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Aug 31, 2024
1 parent 9b2bd35 commit 2001d8c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/python/lief/dwarf/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Type:
ARRAY: ClassVar[Type.KIND] = ...
BASE: ClassVar[Type.KIND] = ...
CLASS: ClassVar[Type.KIND] = ...
CONST: ClassVar[Type.KIND] = ...
CONST_KIND: ClassVar[Type.KIND] = ...
POINTER: ClassVar[Type.KIND] = ...
STRUCT: ClassVar[Type.KIND] = ...
UNION: ClassVar[Type.KIND] = ...
Expand Down
2 changes: 1 addition & 1 deletion api/python/src/DWARF/pyType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void create<dw::Type>(nb::module_& m) {
.value("UNKNOWN", Type::KIND::UNKNOWN)
.value("UNSPECIFIED", Type::KIND::UNSPECIFIED)
.value("BASE", Type::KIND::BASE)
.value("CONST", Type::KIND::CONST)
.value("CONST_KIND", Type::KIND::CONST_KIND)
.value("CLASS", Type::KIND::CLASS)
.value("ARRAY", Type::KIND::ARRAY)
.value("POINTER", Type::KIND::POINTER)
Expand Down
2 changes: 1 addition & 1 deletion include/LIEF/DWARF/Type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class LIEF_API Type {
UNKNOWN = 0,
UNSPECIFIED,
BASE,
CONST,
CONST_KIND,
CLASS,
ARRAY,
POINTER,
Expand Down
2 changes: 1 addition & 1 deletion include/LIEF/DWARF/types/Const.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class LIEF_API Const : public Type {
using Type::Type;

static bool classof(const Type* type) {
return type->kind() == Type::KIND::CONST;
return type->kind() == Type::KIND::CONST_KIND;
}

/// The underlying type being const-ed
Expand Down

0 comments on commit 2001d8c

Please sign in to comment.