Skip to content

Commit 2d46f24

Browse files
committed
Finish cleaning up registers setting code
1 parent 350d7b8 commit 2d46f24

File tree

2 files changed

+367
-225
lines changed

2 files changed

+367
-225
lines changed

src/dbg/expressionparser.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,12 @@ bool ExpressionParser::Calculate(duint & value, bool signedcalc, bool allowassig
842842
{
843843
// Just a number, optimize this very common case for tracing performance
844844
value = mTokens[0].info();
845+
if(isvar)
846+
*isvar = false;
847+
if(value_size)
848+
*value_size = sizeof(duint);
849+
if(hexonly)
850+
*hexonly = false;
845851
return true;
846852
}
847853
EvalValue evalue(0);

0 commit comments

Comments
 (0)