diff --git a/libs/srla_coder/src/srla_coder.c b/libs/srla_coder/src/srla_coder.c index de1434c..7054ad6 100644 --- a/libs/srla_coder/src/srla_coder.c +++ b/libs/srla_coder/src/srla_coder.c @@ -181,11 +181,10 @@ 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));\ + const uint32_t tmp_uval__ = (uval) - k1pow__;\ + BitWriter_PutZeroRun((stream), 1 + (tmp_uval__ >> (k2)));\ + BitWriter_PutBits((stream), tmp_uval__, (k2));\ }\ } while (0); #else