From a76688e6301359ab0210378d542c8418e878fe3c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 19 Dec 2012 11:18:00 +1100 Subject: [PATCH] Math: fixed example warnings --- libraries/AP_Math/examples/location/location.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Math/examples/location/location.pde b/libraries/AP_Math/examples/location/location.pde index b4373aa8f7..9681965ef6 100644 --- a/libraries/AP_Math/examples/location/location.pde +++ b/libraries/AP_Math/examples/location/location.pde @@ -79,7 +79,7 @@ static void test_one_offset(struct Location &loc, uint32_t t1 = hal.scheduler->micros(); location_offset(&loc2, ofs_north, ofs_east); hal.console->printf("location_offset took %u usec\n", - hal.scheduler->micros() - t1); + (unsigned)(hal.scheduler->micros() - t1)); dist2 = get_distance(&loc, &loc2); bearing2 = get_bearing_cd(&loc, &loc2) * 0.01; float brg_error = bearing2-bearing;