compile fail in debug mode

This commit is contained in:
folkert van heusden 2024-05-03 23:32:15 +02:00
parent a13acb4ba0
commit 2ca5be5d14
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -62,7 +62,7 @@ bool disk_backend_file::read(const off_t offset_in, const size_t n, uint8_t *con
{ {
DOLOG(debug, false, "disk_backend_file::read: read %zu bytes from offset %zu", n, offset_in); DOLOG(debug, false, "disk_backend_file::read: read %zu bytes from offset %zu", n, offset_in);
assert((offset % sector_size) == 0); assert((offset_in % sector_size) == 0);
assert((n % sector_size) == 0); assert((n % sector_size) == 0);
for(off_t o=0; o<off_t(n); o+=sector_size) { for(off_t o=0; o<off_t(n); o+=sector_size) {