mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-09 05:25:01 +00:00
This reads the file, so it can't be constexpr
.
This commit is contained in:
@@ -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;
|
uint8_t size_width = header >> 5;
|
||||||
size_t length = 0;
|
size_t length = 0;
|
||||||
while(size_width--) {
|
while(size_width--) {
|
||||||
|
Reference in New Issue
Block a user