AP_Terrain: fixed a warning

This commit is contained in:
Andrew Tridgell 2014-10-22 16:15:52 +11:00
parent b495905da5
commit e6c6fe095f
1 changed files with 1 additions and 1 deletions

View File

@ -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));