Fix cast
This commit is contained in:
1 parent
417b0295be
commit
9ef4b5c93f
1 file changed
+1
-1
+1
-1
@@ -548,7 +548,7 @@
|
||||
ret = f->interface->read_variant_start(local, f, field_name, field_max, &id); \
|
||||
if (ret != M_SERIAL_OK_CONTINUE) return ret; \
|
||||
assert (id >= 0 && id < field_max); \
|
||||
el->type = M_C(name, _enum)(id+1); \
|
||||
el->type = (enum M_C(name, _enum))(id+1); \
|
||||
switch (id+1) { \
|
||||
M_MAP2(VARIANTI_DEFINE_IN_SERIAL_FUNC , name, __VA_ARGS__) \
|
||||
default: assert(false); break; \
|
||||
|
||||
Reference in new issue
Block a user