Bytecode: in FNUMEXPR, store lag as int rather than int8_t

Otherwise lags are truncated at ±128.
master
Sébastien Villemot 2022-06-20 10:44:21 +02:00
parent b1c8e24e01
commit 4662a42c9a
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 2 deletions

View File

@ -900,7 +900,7 @@ private:
ExpressionType expression_type;
unsigned int equation;
uint16_t dvariable1;
int8_t lag1;
int lag1;
public:
FNUMEXPR_(const ExpressionType expression_type_arg, unsigned int equation_arg) :
BytecodeInstruction{Tags::FNUMEXPR},
@ -923,7 +923,7 @@ public:
expression_type{expression_type_arg},
equation{equation_arg},
dvariable1{static_cast<uint16_t>(dvariable1_arg)},
lag1{static_cast<int8_t>(lag1_arg)}
lag1{lag1_arg}
{
};
ExpressionType