summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-02-16 19:50:24 +0100
committerMax Kellermann <max@musicpd.org>2021-02-16 19:50:25 +0100
commitf090af0a22a415c8822f3e58810157cfeca796e3 (patch)
tree1ae5a672a09675714cd23d870ef50acd595967b3 /src
parent58f420fdcaeeb8109ef58beb88b23bb0cf42cba5 (diff)
tag/RiffFormat: add static_asserts on sizeof()
Diffstat (limited to 'src')
-rw-r--r--src/tag/RiffFormat.hxx4
1 files changed, 4 insertions, 0 deletions
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