1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed ! unary op in debugger, "<null parent>" error on valueless

This commit is contained in:
Brian Fiete 2019-09-28 16:27:19 -07:00
parent d28a804c18
commit 957039e7cc
2 changed files with 2 additions and 2 deletions

View file

@ -6373,7 +6373,7 @@ void DbgExprEvaluator::PerformUnaryExpression(BfAstNode* opToken, BfUnaryOp unar
case BfUnaryOp_Not:
{
auto boolType = mDbgModule->GetPrimitiveType(DbgType_Bool, GetLanguage());
if (mResult.mType != boolType)
if (mResult.mType->mTypeCode != DbgType_Bool)
{
Fail("Operator can only be used on boolean values", opToken);
return;

View file

@ -7547,7 +7547,7 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
}
bool isNull = wasPtr && (dataPtr == 0);
bool isBadSrc = !wasPtr && (dataPtr == 0);
bool isBadSrc = !wasPtr && (dataPtr == 0) && (!dwValueType->IsValuelessType());
if ((ptrVal == 0) && (dwValueType->IsTypedPrimitive()))
{