AP_Param: Explicitly casts AP_CLASSTYPE parameter.

This commit is contained in:
tcr3dr 2015-06-04 12:08:31 -07:00 committed by Andrew Tridgell
parent 9d26bc6958
commit 41e4c2720d
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
#define AP_VAROFFSET(type, element) (((uintptr_t)(&((const type *)1)->element))-1)
// find the type of a variable given the class and element
#define AP_CLASSTYPE(class, element) (((const class *) 1)->element.vtype)
#define AP_CLASSTYPE(class, element) ((uint8_t)(((const class *) 1)->element.vtype))
// declare a group var_info line
#define AP_GROUPINFO(name, idx, class, element, def) { AP_CLASSTYPE(class, element), idx, name, AP_VAROFFSET(class, element), {def_value : def} }