Merge pull request #87571 from 0x0ACB/fam_offby1
Fix `FileAccessMemory` off by one error in `eof_reached`
This commit is contained in:
commit
e5ecf95c1a
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ uint64_t FileAccessMemory::get_length() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FileAccessMemory::eof_reached() const {
|
bool FileAccessMemory::eof_reached() const {
|
||||||
return pos > length;
|
return pos >= length;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t FileAccessMemory::get_8() const {
|
uint8_t FileAccessMemory::get_8() const {
|
||||||
|
|
Loading…
Reference in a new issue