Skip to content

Commit c51c13e

Browse files
committed
Fix for 32-bit
1 parent 56aa360 commit c51c13e

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/from_current.cpp

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,6 @@ namespace detail {
8383
std::int32_t pForwardCompat;
8484
std::int32_t pCatchableTypeArray;
8585
};
86-
#pragma warning(disable:4200)
87-
#if IS_CLANG
88-
#pragma clang diagnostic push
89-
#pragma clang diagnostic ignored "-Wc99-extensions"
90-
#endif
91-
struct CatchableTypeArray {
92-
uint32_t nCatchableTypes;
93-
int32_t arrayOfCatchableTypes[];
94-
};
95-
#if IS_CLANG
96-
#pragma clang diagnostic pop
97-
#endif
98-
#pragma warning (pop)
9986
#pragma pack(pop)
10087
#else
10188
using CatchableType = ::_CatchableType;
@@ -109,11 +96,11 @@ namespace detail {
10996

11097
class catchable_type_info {
11198
HMODULE module_pointer = nullptr;
112-
const CatchableTypeArray* catchable_types = nullptr;
99+
const _CatchableTypeArray* catchable_types = nullptr;
113100
public:
114101
catchable_type_info(const HMODULE module_pointer, catchable_type_array_t catchable_type_array)
115102
: module_pointer(module_pointer) {
116-
catchable_types = rtti_rva<const CatchableTypeArray*>(catchable_type_array);
103+
catchable_types = rtti_rva<const _CatchableTypeArray*>(catchable_type_array);
117104
}
118105

119106
class iterator {

0 commit comments

Comments
 (0)