Browse Source

AP_HAL_SITL: correct comparison between signed and unsigned

Closes #10637
master
Peter Barker 6 years ago committed by Peter Barker
parent
commit
a7589a4aed
  1. 2
      libraries/AP_HAL_SITL/Storage.cpp

2
libraries/AP_HAL_SITL/Storage.cpp

@ -121,7 +121,7 @@ void Storage::_timer_tick(void) @@ -121,7 +121,7 @@ void Storage::_timer_tick(void)
#if STORAGE_USE_POSIX
if (using_filesystem && log_fd != -1) {
uint32_t offset = STORAGE_LINE_SIZE*i;
const off_t offset = STORAGE_LINE_SIZE*i;
if (lseek(log_fd, offset, SEEK_SET) != offset) {
return;
}

Loading…
Cancel
Save