From 16945411451710c9dfa86c5d1ddfff94d6571197 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Wed, 9 Jul 2025 14:46:29 +0530 Subject: [PATCH 1/2] Decoder USAN error fix --- lib_com/cnst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_com/cnst.h b/lib_com/cnst.h index 53032d5ae..a01f447d4 100644 --- a/lib_com/cnst.h +++ b/lib_com/cnst.h @@ -134,7 +134,7 @@ #define ONE_IN_Q29 536870912 #define ONE_IN_Q30 1073741824 #define ONE_IN_Q31 0x7fffffff -#define MINUS_ONE_IN_Q31 0x80000000 +#define MINUS_ONE_IN_Q31 -2147483647 - 1 #define TWO_IN_Q29 1073741824 #define FOUR_IN_Q28 1073741824 -- GitLab From e2c6c0ab96a85b9e7e1d8bf48c89ad7a138de4f6 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Wed, 9 Jul 2025 17:28:09 +0530 Subject: [PATCH 2/2] Parenthesis for the macro added --- lib_com/cnst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_com/cnst.h b/lib_com/cnst.h index a01f447d4..8faa2cb57 100644 --- a/lib_com/cnst.h +++ b/lib_com/cnst.h @@ -134,7 +134,7 @@ #define ONE_IN_Q29 536870912 #define ONE_IN_Q30 1073741824 #define ONE_IN_Q31 0x7fffffff -#define MINUS_ONE_IN_Q31 -2147483647 - 1 +#define MINUS_ONE_IN_Q31 (-2147483647 - 1) #define TWO_IN_Q29 1073741824 #define FOUR_IN_Q28 1073741824 -- GitLab