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:
Tobias Brunner 2011-11-25 09:48:32 +01:00
parent 282dcb9974
commit b46a5cd4ef

View file

@ -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;