Openstreetmap support (#2765)

This commit is contained in:
Totoo
2025-08-27 08:37:57 +02:00
committed by GitHub
parent e6d4081c06
commit 4dda7cfaa5
20 changed files with 447 additions and 162 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ File::Result<bool> File::eof() {
File::Result<File::Offset> File::seek(Offset new_position) {
/* NOTE: Returns *old* position, not new position */
const auto old_position = tell();
const auto result = f_lseek(&f, new_position);
const auto result = (old_position == new_position) ? FR_OK : f_lseek(&f, new_position);
if (result != FR_OK) {
return {static_cast<Error>(result)};
}