Add parenthesis around ROUND_Q20 macro arg

This commit is contained in:
Aetias
2024-02-18 12:12:35 +01:00
parent 7749c59b13
commit b990ade652
+1 -1
View File
@@ -9,7 +9,7 @@ typedef u32 q20;
#define INT_TO_Q20(n) ((s32)((n) << 12))
#define FLOAT_TO_Q20(n) ((s32)(((n) * 8192 + 1) / 2))
#define ROUND_Q20(n) (((s32) n + 0x800) >> 12)
#define ROUND_Q20(n) (((s32)(n) + 0x800) >> 12)
typedef struct {
/* 0 */ q20 x;