Use std::vector for RPN expressions

This commit is contained in:
Rangi42
2024-02-24 12:12:19 -05:00
committed by Sylvie
parent d792ee4b61
commit 5075ac8887
4 changed files with 39 additions and 65 deletions

View File

@@ -83,8 +83,8 @@ static int32_t computeRPNExpr(struct Patch const *patch,
// Small shortcut to avoid a lot of repetition
#define popRPN() popRPN(patch->src, patch->lineNo)
uint8_t const *expression = patch->rpnExpression;
int32_t size = patch->rpnSize;
uint8_t const *expression = &patch->rpnExpression[0];
int32_t size = (int32_t)patch->rpnExpression.size();
rpnStack.clear();