@@ -114,10 +114,10 @@ void dyn_cast_get_derived_info(derived_object_info* info, const void* static_ptr
114
114
reinterpret_cast <const uint8_t *>(vtable) + offset_to_ti_proxy;
115
115
info->dynamic_type = *(reinterpret_cast <const __class_type_info* const *>(ptr_to_ti_proxy));
116
116
#else
117
- void ** vtable = strip_vtable (*static_cast <void ** const *>(static_ptr));
118
- info->offset_to_derived = reinterpret_cast <ptrdiff_t >(vtable[-2 ]);
119
- info->dynamic_ptr = static_cast <const char *>(static_ptr) + info->offset_to_derived ;
120
- info->dynamic_type = static_cast <const __class_type_info*>(vtable[-1 ]);
117
+ void ** vtable = strip_vtable (*static_cast <void ** const *>(static_ptr));
118
+ info->offset_to_derived = reinterpret_cast <ptrdiff_t >(vtable[-2 ]);
119
+ info->dynamic_ptr = static_cast <const char *>(static_ptr) + info->offset_to_derived ;
120
+ info->dynamic_type = static_cast <const __class_type_info*>(vtable[-1 ]);
121
121
#endif
122
122
}
123
123
@@ -1512,8 +1512,8 @@ __base_class_type_info::search_above_dst(__dynamic_cast_info* info,
1512
1512
ptrdiff_t offset_to_base = __offset_flags >> __offset_shift;
1513
1513
if (__offset_flags & __virtual_mask)
1514
1514
{
1515
- const char * vtable = strip_vtable (*static_cast <const char *const *>(current_ptr));
1516
- offset_to_base = update_offset_to_base (vtable, offset_to_base);
1515
+ const char * vtable = strip_vtable (*static_cast <const char * const *>(current_ptr));
1516
+ offset_to_base = update_offset_to_base (vtable, offset_to_base);
1517
1517
}
1518
1518
__base_type->search_above_dst (info, dst_ptr,
1519
1519
static_cast <const char *>(current_ptr) + offset_to_base,
@@ -1532,8 +1532,8 @@ __base_class_type_info::search_below_dst(__dynamic_cast_info* info,
1532
1532
ptrdiff_t offset_to_base = __offset_flags >> __offset_shift;
1533
1533
if (__offset_flags & __virtual_mask)
1534
1534
{
1535
- const char * vtable = strip_vtable (*static_cast <const char *const *>(current_ptr));
1536
- offset_to_base = update_offset_to_base (vtable, offset_to_base);
1535
+ const char * vtable = strip_vtable (*static_cast <const char * const *>(current_ptr));
1536
+ offset_to_base = update_offset_to_base (vtable, offset_to_base);
1537
1537
}
1538
1538
__base_type->search_below_dst (info,
1539
1539
static_cast <const char *>(current_ptr) + offset_to_base,
0 commit comments