aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 13:57:47 -0400
committerDavid Robillard <d@drobilla.net>2024-10-06 13:57:47 -0400
commit5309d0fcc9ef1a01ce9d0e3631ae45eb86a28740 (patch)
treed4b73d4903b3a196a365968a1ab3d3a9ed9849f4 /test
parent447b44c67368a4e1686d1db2688e5624a63cd0f4 (diff)
downloadlv2-5309d0fcc9ef1a01ce9d0e3631ae45eb86a28740.tar.xz
Add missing const qualifiers
Diffstat (limited to 'test')
-rw-r--r--test/test_atom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_atom.c b/test/test_atom.c
index 421063e..ffe73a1 100644
--- a/test/test_atom.c
+++ b/test/test_atom.c
@@ -186,7 +186,7 @@ main(void)
LV2_Atom_Vector* vector = (LV2_Atom_Vector*)lv2_atom_forge_deref(
&forge,
lv2_atom_forge_vector(&forge, sizeof(int32_t), forge.Int, 4, elems));
- void* vec_body = LV2_ATOM_CONTENTS(LV2_Atom_Vector, vector);
+ const void* vec_body = LV2_ATOM_CONTENTS_CONST(LV2_Atom_Vector, vector);
if (!!memcmp(elems, vec_body, sizeof(elems))) {
return test_fail("Corrupt vector\n");
}