From 72a7f674ec71e89bad6af4d4905b3738eb920428 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 23 Apr 2016 10:22:01 +0900 Subject: [PATCH] AP_Motors: protect against out-of-bounds memory access resolves a compiler warning --- libraries/AP_Motors/AP_Motors_Class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Motors/AP_Motors_Class.cpp b/libraries/AP_Motors/AP_Motors_Class.cpp index c14a5f6226..05bd3c184d 100644 --- a/libraries/AP_Motors/AP_Motors_Class.cpp +++ b/libraries/AP_Motors/AP_Motors_Class.cpp @@ -132,7 +132,7 @@ uint32_t AP_Motors::rc_map_mask(uint32_t mask) const for (uint8_t i=0; i<32; i++) { uint32_t bit = 1UL<