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:
parent
d28a804c18
commit
957039e7cc
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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()))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue