1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed debug viewing of boxed types

This commit is contained in:
Brian Fiete 2020-01-30 07:03:27 -08:00
parent da7015e82d
commit 17fbd8f8d6

View file

@ -1756,6 +1756,9 @@ DbgTypedValue DbgExprEvaluator::Cast(BfAstNode* srcNode, const DbgTypedValue& ty
fromType = fromType->GetPrimaryType();
toType = toType->GetPrimaryType();
if ((toType->IsBfObject()) && (fromType->IsPointer()))
toType = toType->GetDbgModule()->GetPointerType(toType);
if (toType->IsPrimitiveType())
{
if (fromType->mTypeCode == toType->mTypeCode)