From 99f0e92531e1fc8b6ae5be93bcd9f7a28b4f7907 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Oct 2011 20:25:10 +1100 Subject: [PATCH] desktop: silence an implicit cast warning --- libraries/AP_Common/AP_Var.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Common/AP_Var.h b/libraries/AP_Common/AP_Var.h index 4fd5dc1d49..99823ecb17 100644 --- a/libraries/AP_Common/AP_Var.h +++ b/libraries/AP_Common/AP_Var.h @@ -119,7 +119,7 @@ public: /// A bitmask that removes any control bits from a key giving just the /// value. /// - static const Key k_key_mask = ~(k_key_not_located | k_key_not_allocated); + static const Key k_key_mask = (Key)(~(k_key_not_located | k_key_not_allocated)); /// The largest variable that will be saved to EEPROM. /// This affects the amount of stack space that is required by the ::save, ::load,