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:
1 parent
282dcb9974
commit
b46a5cd4ef
1 file changed
+1
-1
@@ -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