tag/RiffFormat: add static_asserts on sizeof()
This commit is contained in:
parent
58f420fdca
commit
f090af0a22
@ -28,9 +28,13 @@ struct RiffFileHeader {
|
|||||||
char format[4];
|
char format[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static_assert(sizeof(RiffFileHeader) == 12);
|
||||||
|
|
||||||
struct RiffChunkHeader {
|
struct RiffChunkHeader {
|
||||||
char id[4];
|
char id[4];
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static_assert(sizeof(RiffChunkHeader) == 8);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user