AP_Param: Fix compiler warning on Flymaple

This commit is contained in:
Mike McCauley 2013-09-23 13:35:23 +10:00 committed by Andrew Tridgell
parent 4c65c42411
commit 2e061fc507

View File

@ -1105,7 +1105,7 @@ void AP_Param::convert_old_parameter(const struct ConversionInfo *info)
}
// see if they are the same type
if (ptype == header.type) {
if (ptype == (ap_var_type)header.type) {
// copy the value over only if the new parameter does not already
// have the old value (via a default).
if (memcmp(ap2, ap, sizeof(old_value)) != 0) {