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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user