tag/RiffFormat: add static_asserts on sizeof()

This commit is contained in:
Max Kellermann 2021-02-16 19:50:24 +01:00
parent 58f420fdca
commit f090af0a22

View File

@ -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