diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2023-09-10 22:15:50 +0200 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2023-09-10 22:15:50 +0200 |
commit | 9c0dbf84006b7219ef7e05ef324ae9c05d78a8c7 (patch) | |
tree | a7287afd553b27318652e08b2e112e5099bc1897 /src/rm.cpp | |
parent | f0456e6642047976b407a80cafec3ccb473e3332 (diff) | |
download | atracdenc-9c0dbf84006b7219ef7e05ef324ae9c05d78a8c7.tar.gz |
Fix warnings
Diffstat (limited to 'src/rm.cpp')
-rw-r--r-- | src/rm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -59,7 +59,7 @@ void WriteRMF(FILE* f) { constexpr size_t CODEC_DATA_SZ = 92; constexpr char RA_MIME[] = "audio/x-pn-realaudio"; constexpr char RA_DESC[] = "Audio Stream"; -static_assert(sizeof(char) == 1); +static_assert(sizeof(char) == 1, "unexpected char size"); constexpr size_t MDPR_HEADER_SZ = 42 + sizeof(RA_MIME) + sizeof(RA_DESC) + CODEC_DATA_SZ; void FillCodecData(char* buf, uint32_t frameSize, uint8_t numChannels, bool jointStereo, uint32_t bitrate) { @@ -136,7 +136,7 @@ void scramble_data(const char* input, char* out, size_t bytes) { const uint32_t* buf = reinterpret_cast<const uint32_t*>(input); uint32_t* o = reinterpret_cast<uint32_t*>(out); uint32_t c = swapbyte32_on_le(0x537F6103U); - static_assert(sizeof(uint32_t) / sizeof(char) == 4); + static_assert(sizeof(uint32_t) / sizeof(char) == 4, "unexpected uint32_t size"); for (size_t i = 0; i < bytes / 4; i++) { o[i] = c ^ buf[i]; |