Fixed check for log groups when debug_t is unsigned.
The range and signedness of enum types is up to the compiler.
This commit is contained in:
parent
282dcb9974
commit
b46a5cd4ef
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ static void stroke_loglevel(private_stroke_socket_t *this,
|
|||
msg->loglevel.level, msg->loglevel.type);
|
||||
|
||||
group = enum_from_name(debug_names, msg->loglevel.type);
|
||||
if (group < 0)
|
||||
if ((int)group < 0)
|
||||
{
|
||||
fprintf(out, "invalid type (%s)!\n", msg->loglevel.type);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue