Просмотр исходного кода

Fix FileAccessMemory off by one error in eof_reached

(cherry picked from commit 2561f6fc52b036fd133b9b1b16e770912d45745b)
ACB 1 год назад
Родитель
Сommit
f4106e5fb3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      core/io/file_access_memory.cpp

+ 1 - 1
core/io/file_access_memory.cpp

@@ -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 {