aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_forge_overflow.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-02-10 15:27:55 -0500
committerDavid Robillard <d@drobilla.net>2025-02-10 15:47:54 -0500
commit4285fab0c0b14cbbcf9ddbe29d274c0c55a04edd (patch)
treebbb72e2cf7df6072f4fed15b140a0e6c5b8af7a5 /test/test_forge_overflow.c
parent3e1e609d89fb1954bd497ae8021a3b6c0aad31f6 (diff)
downloadlv2-4285fab0c0b14cbbcf9ddbe29d274c0c55a04edd.tar.xz
Fully parenthesize expressionsHEADmain
Diffstat (limited to 'test/test_forge_overflow.c')
-rw-r--r--test/test_forge_overflow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_forge_overflow.c b/test/test_forge_overflow.c
index 8f6ee03..7e97ae4 100644
--- a/test/test_forge_overflow.c
+++ b/test/test_forge_overflow.c
@@ -90,7 +90,7 @@ test_literal_overflow(void)
static int
test_sequence_overflow(void)
{
- static const size_t size = sizeof(LV2_Atom_Sequence) + 6 * sizeof(LV2_Atom);
+ static const size_t size = sizeof(LV2_Atom_Sequence) + (6 * sizeof(LV2_Atom));
LV2_URID_Map map = {NULL, urid_map};
// Test over a range that fails in the sequence header and event components
@@ -121,7 +121,7 @@ test_sequence_overflow(void)
static int
test_vector_head_overflow(void)
{
- static const size_t size = sizeof(LV2_Atom_Vector) + 3 * sizeof(LV2_Atom);
+ static const size_t size = sizeof(LV2_Atom_Vector) + (3 * sizeof(LV2_Atom));
LV2_URID_Map map = {NULL, urid_map};
// Test over a range that fails in the vector header and elements
@@ -154,7 +154,7 @@ test_vector_head_overflow(void)
static int
test_vector_overflow(void)
{
- static const size_t size = sizeof(LV2_Atom_Vector) + 3 * sizeof(LV2_Atom);
+ static const size_t size = sizeof(LV2_Atom_Vector) + (3 * sizeof(LV2_Atom));
static const int32_t vec[] = {1, 2, 3};
LV2_URID_Map map = {NULL, urid_map};
@@ -181,7 +181,7 @@ test_vector_overflow(void)
static int
test_tuple_overflow(void)
{
- static const size_t size = sizeof(LV2_Atom_Tuple) + 3 * sizeof(LV2_Atom);
+ static const size_t size = sizeof(LV2_Atom_Tuple) + (3 * sizeof(LV2_Atom));
LV2_URID_Map map = {NULL, urid_map};
// Test over a range that fails in the tuple header and elements