From f090af0a22a415c8822f3e58810157cfeca796e3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 16 Feb 2021 19:50:24 +0100 Subject: [PATCH] tag/RiffFormat: add static_asserts on sizeof() --- src/tag/RiffFormat.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tag/RiffFormat.hxx b/src/tag/RiffFormat.hxx index f218f3529..d0d92d078 100644 --- a/src/tag/RiffFormat.hxx +++ b/src/tag/RiffFormat.hxx @@ -28,9 +28,13 @@ struct RiffFileHeader { char format[4]; }; +static_assert(sizeof(RiffFileHeader) == 12); + struct RiffChunkHeader { char id[4]; uint32_t size; }; +static_assert(sizeof(RiffChunkHeader) == 8); + #endif