Browse Source

AP_Limits: fixed some memory cast warnings

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
10b8030e62
  1. 4
      libraries/AP_Limits/AP_Limit_Geofence.cpp

4
libraries/AP_Limits/AP_Limit_Geofence.cpp

@ -144,7 +144,7 @@ AP_Int8 AP_Limit_Geofence::fence_total() { @@ -144,7 +144,7 @@ AP_Int8 AP_Limit_Geofence::fence_total() {
// save a fence point
void AP_Limit_Geofence::set_fence_point_with_index(Vector2l &point, uint8_t i)
{
uint32_t mem;
uintptr_t mem;
if (i >= (unsigned)fence_total()) {
// not allowed
@ -165,7 +165,7 @@ void AP_Limit_Geofence::set_fence_point_with_index(Vector2l &point, uint8_t i) @@ -165,7 +165,7 @@ void AP_Limit_Geofence::set_fence_point_with_index(Vector2l &point, uint8_t i)
*/
Vector2l AP_Limit_Geofence::get_fence_point_with_index(uint8_t i)
{
uint32_t mem;
uintptr_t mem;
Vector2l ret;
if (i > (unsigned) fence_total()) {

Loading…
Cancel
Save