mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Terrain: fixed a warning
This commit is contained in:
parent
b495905da5
commit
e6c6fe095f
@ -203,7 +203,7 @@ void AP_Terrain::seek_offset(void)
|
||||
|
||||
uint32_t file_offset = (east_blocks * block.grid_idx_x +
|
||||
block.grid_idx_y) * sizeof(union grid_io_block);
|
||||
if (::lseek(fd, file_offset, SEEK_SET) != file_offset) {
|
||||
if (::lseek(fd, file_offset, SEEK_SET) != (off_t)file_offset) {
|
||||
#if TERRAIN_DEBUG
|
||||
hal.console->printf("Seek %lu failed - %s\n",
|
||||
(unsigned long)file_offset, strerror(errno));
|
||||
|
Loading…
Reference in New Issue
Block a user