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