mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 05:48:40 +00:00
fix ptr-to-ptr expansions
This commit is contained in:
@@ -1894,6 +1894,7 @@ internal E_TypeKey
|
|||||||
e_default_expansion_type_from_key(E_TypeKey root_key)
|
e_default_expansion_type_from_key(E_TypeKey root_key)
|
||||||
{
|
{
|
||||||
E_TypeKey type_key = zero_struct;
|
E_TypeKey type_key = zero_struct;
|
||||||
|
B32 hit_1ptr = 0;
|
||||||
for(E_TypeKey key = root_key;
|
for(E_TypeKey key = root_key;
|
||||||
!e_type_key_match(e_type_key_zero(), key);
|
!e_type_key_match(e_type_key_zero(), key);
|
||||||
key = e_type_direct_from_key(key))
|
key = e_type_direct_from_key(key))
|
||||||
@@ -1913,8 +1914,13 @@ e_default_expansion_type_from_key(E_TypeKey root_key)
|
|||||||
E_Type *type = e_type_from_key__cached(key);
|
E_Type *type = e_type_from_key__cached(key);
|
||||||
if(!e_type_key_match(e_type_key_basic(E_TypeKind_Void), type->direct_type_key))
|
if(!e_type_key_match(e_type_key_basic(E_TypeKind_Void), type->direct_type_key))
|
||||||
{
|
{
|
||||||
if(type->count == 1)
|
if(type->count == 1 && hit_1ptr)
|
||||||
{
|
{
|
||||||
|
type_key = key;
|
||||||
|
}
|
||||||
|
else if(type->count == 1 && !hit_1ptr)
|
||||||
|
{
|
||||||
|
hit_1ptr = 1;
|
||||||
done = 0;
|
done = 0;
|
||||||
}
|
}
|
||||||
else if(type->count > 1)
|
else if(type->count > 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user