From f03c73aeffdc7b7b892ed08f74f4bee68184f0b7 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Wed, 4 Apr 2018 14:46:49 -0700 Subject: [PATCH] AP_Terrain: compiler warning printing %u with signed value --- libraries/AP_Terrain/TerrainIO.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Terrain/TerrainIO.cpp b/libraries/AP_Terrain/TerrainIO.cpp index d08b9d0315..4ebdc99434 100644 --- a/libraries/AP_Terrain/TerrainIO.cpp +++ b/libraries/AP_Terrain/TerrainIO.cpp @@ -173,9 +173,9 @@ void AP_Terrain::open_file(void) } snprintf(p, 13, "/%c%02u%c%03u.DAT", block.lat_degrees<0?'S':'N', - MIN(abs((int32_t)block.lat_degrees), 99), + (unsigned)MIN(abs((int32_t)block.lat_degrees), 99), block.lon_degrees<0?'W':'E', - MIN(abs((int32_t)block.lon_degrees), 999)); + (unsigned)MIN(abs((int32_t)block.lon_degrees), 999)); // create directory if need be if (!directory_created) {