patterns: Fixed string access
This commit is contained in:
parent
3850349eae
commit
a8526585cb
@ -1323,8 +1323,10 @@ namespace hex::pl {
|
|||||||
[&, this](auto &&assignmentValue) { LogConsole::abortEvaluation(hex::format("cannot assign '{}' to string", pattern->getTypeName()), this); }
|
[&, this](auto &&assignmentValue) { LogConsole::abortEvaluation(hex::format("cannot assign '{}' to string", pattern->getTypeName()), this); }
|
||||||
}, literal);
|
}, literal);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
evaluator->getProvider()->read(pattern->getOffset(), value.data(), pattern->getSize());
|
value.resize(pattern->getSize());
|
||||||
|
evaluator->getProvider()->read(pattern->getOffset(), value.data(), value.size());
|
||||||
|
}
|
||||||
|
|
||||||
literal = value;
|
literal = value;
|
||||||
} else if (auto bitfieldFieldPattern = dynamic_cast<PatternDataBitfieldField*>(pattern)) {
|
} else if (auto bitfieldFieldPattern = dynamic_cast<PatternDataBitfieldField*>(pattern)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user