From f363d0542ce75f2d1583bcc194a1096f0e0b9d72 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 12 Feb 2012 22:26:49 +1100 Subject: [PATCH] fixed warning in Log build --- ArduCopter/Log.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/Log.pde b/ArduCopter/Log.pde index 5937e11cad..3833f4eb24 100644 --- a/ArduCopter/Log.pde +++ b/ArduCopter/Log.pde @@ -219,7 +219,7 @@ void print_latlon(BetterStream *s, int32_t lat_or_lon) { int32_t dec_portion = lat_or_lon / T7; int32_t frac_portion = labs(lat_or_lon - dec_portion*T7); - s->printf("%ld.%07ld",dec_portion,frac_portion); + s->printf("%ld.%07ld",(long)dec_portion,(long)frac_portion); } // Write an GPS packet. Total length : 31 bytes