mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:55:06 +00:00
SynthFS: Oops, fix build.
This commit is contained in:
parent
ed66f1d6d4
commit
4e70c1fc0a
1 changed files with 2 additions and 2 deletions
|
@ -212,8 +212,8 @@ ssize_t SynthFSInode::read_bytes(off_t offset, ssize_t count, u8* buffer, FileDe
|
|||
data_to_use = &m_data.value();
|
||||
else
|
||||
ASSERT_NOT_REACHED();
|
||||
ssize_t nread = min(static_cast<off_t>(data->size() - offset), static_cast<off_t>(count));
|
||||
memcpy(buffer, data->data() + offset, nread);
|
||||
ssize_t nread = min(static_cast<off_t>(data_to_use->size() - offset), static_cast<off_t>(count));
|
||||
memcpy(buffer, data_to_use->data() + offset, nread);
|
||||
if (nread == 0 && description && description->generator_cache())
|
||||
description->generator_cache().clear();
|
||||
return nread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue