From 4662a42c9ad2c90d921d0f72b307fd7bba29d627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Mon, 20 Jun 2022 10:44:21 +0200 Subject: [PATCH] Bytecode: in FNUMEXPR, store lag as int rather than int8_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise lags are truncated at ±128. --- src/Bytecode.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bytecode.hh b/src/Bytecode.hh index c04e9102..2fb965ff 100644 --- a/src/Bytecode.hh +++ b/src/Bytecode.hh @@ -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(dvariable1_arg)}, - lag1{static_cast(lag1_arg)} + lag1{lag1_arg} { }; ExpressionType