From a28bc80f9942550509b879927b1e4e44149d683c Mon Sep 17 00:00:00 2001 From: aikiriao Date: Tue, 25 Jun 2024 07:31:55 +0900 Subject: [PATCH] fix compile error in test. --- libs/srla_coder/src/srla_coder.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/srla_coder/src/srla_coder.c b/libs/srla_coder/src/srla_coder.c index 6e611fd..de1434c 100644 --- a/libs/srla_coder/src/srla_coder.c +++ b/libs/srla_coder/src/srla_coder.c @@ -181,10 +181,11 @@ static void Rice_PutCode(struct BitStream *stream, uint32_t k, uint32_t uval) /* 1段目で符号化 */\ BitWriter_PutBits((stream), k1pow__ | (uval), (k1) + 1);\ } else {\ + uint32_t uval__ = uval;\ /* 1段目のパラメータで引き、2段目のパラメータでRice符号化 */\ - (uval) -= k1pow__;\ - BitWriter_PutZeroRun((stream), 1 + ((uval) >> (k2)));\ - BitWriter_PutBits((stream), (uval), (k2));\ + uval__ -= k1pow__;\ + BitWriter_PutZeroRun((stream), 1 + (uval__ >> (k2)));\ + BitWriter_PutBits((stream), uval__, (k2));\ }\ } while (0); #else