From 1ce07e2ee88e0786b50a7aacb892fb1a58c7eece Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 5 Jul 2022 17:01:38 -0400 Subject: [PATCH] This reads the file, so it can't be `constexpr`. --- Storage/Disk/DiskImage/Formats/IPF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Storage/Disk/DiskImage/Formats/IPF.cpp b/Storage/Disk/DiskImage/Formats/IPF.cpp index a55353fcf..c59405335 100644 --- a/Storage/Disk/DiskImage/Formats/IPF.cpp +++ b/Storage/Disk/DiskImage/Formats/IPF.cpp @@ -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--) {