From 70e5ebad012d13ff3443b0a5f7fb402ee3212fcb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 16 Jul 2024 22:05:36 -0400 Subject: Avoid narrowing casts through void --- plugins/eg-sampler.lv2/uris.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/eg-sampler.lv2/uris.h') diff --git a/plugins/eg-sampler.lv2/uris.h b/plugins/eg-sampler.lv2/uris.h index f934390..3d3ac10 100644 --- a/plugins/eg-sampler.lv2/uris.h +++ b/plugins/eg-sampler.lv2/uris.h @@ -164,7 +164,7 @@ read_set_file(const SamplerURIs* uris, const LV2_Atom_Object* obj) return NULL; } - return (const char*)LV2_ATOM_BODY_CONST(value); + return (const char*)&value[1]; } #endif /* SAMPLER_URIS_H */ -- cgit v1.2.1