From 7a9ed0a5a1580ffee46d54553ddb2c67d95f0b7b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 3 Oct 2013 12:20:22 +1000 Subject: [PATCH] AP_GPS: fixed warning --- libraries/AP_GPS/AP_GPS_UBLOX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index 83b51d11ca..67a1628e00 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -74,7 +74,7 @@ AP_GPS_UBLOX::init(AP_HAL::UARTDriver *s, enum GPS_Engine_Setting nav_setting) void AP_GPS_UBLOX::send_next_rate_update(void) { - if (_port->txspace() < sizeof(struct ubx_header)+sizeof(struct ubx_cfg_nav_rate)+2) { + if (_port->txspace() < (int16_t)(sizeof(struct ubx_header)+sizeof(struct ubx_cfg_nav_rate)+2)) { // not enough space - do it next time return; }