1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-08 10:52:58 +00:00

This reads the file, so it can't be constexpr.

This commit is contained in:
Thomas Harte 2022-07-05 17:01:38 -04:00
parent 7cbee172b2
commit 1ce07e2ee8

View File

@ -25,7 +25,7 @@ constexpr uint32_t block(const char (& src)[5]) {
);
}
constexpr size_t block_size(Storage::FileHolder &file, uint8_t header) {
size_t block_size(Storage::FileHolder &file, uint8_t header) {
uint8_t size_width = header >> 5;
size_t length = 0;
while(size_width--) {