From a7589a4aedcf97ef785a9fde4514450910afa3db Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 26 Feb 2019 19:06:12 +1100 Subject: [PATCH] AP_HAL_SITL: correct comparison between signed and unsigned Closes #10637 --- libraries/AP_HAL_SITL/Storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_SITL/Storage.cpp b/libraries/AP_HAL_SITL/Storage.cpp index 035195e958..bf67bc1c35 100644 --- a/libraries/AP_HAL_SITL/Storage.cpp +++ b/libraries/AP_HAL_SITL/Storage.cpp @@ -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; }