Avoid compiler warnings due to extended enums.
This commit is contained in:
@@ -423,7 +423,7 @@ METHOD(generator_t, generate_payload, void,
|
|||||||
{
|
{
|
||||||
DBG2(DBG_ENC, " generating rule %d %N",
|
DBG2(DBG_ENC, " generating rule %d %N",
|
||||||
i, encoding_type_names, rules[i].type);
|
i, encoding_type_names, rules[i].type);
|
||||||
switch (rules[i].type)
|
switch ((int)rules[i].type)
|
||||||
{
|
{
|
||||||
case U_INT_4:
|
case U_INT_4:
|
||||||
case U_INT_8:
|
case U_INT_8:
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ METHOD(parser_t, parse_payload, status_t,
|
|||||||
rule = &(this->rules[rule_number]);
|
rule = &(this->rules[rule_number]);
|
||||||
DBG2(DBG_ENC, " parsing rule %d %N",
|
DBG2(DBG_ENC, " parsing rule %d %N",
|
||||||
rule_number, encoding_type_names, rule->type);
|
rule_number, encoding_type_names, rule->type);
|
||||||
switch (rule->type)
|
switch ((int)rule->type)
|
||||||
{
|
{
|
||||||
case U_INT_4:
|
case U_INT_4:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user