Fix "comparison is always true due to limited range of data type" warning

This commit is contained in:
Dmitry Marakasov 2013-07-30 22:41:09 +04:00
parent 6d0abb4132
commit 5ac7f3d990

View File

@ -87,7 +87,7 @@ void print_friendlist()
for(i = 0; i < 4; i++) {
printf("ClientID: ");
for(j = 0; j < 32; j++) {
if(0 <= friends_list[k].client_list[i].client_id[j] && friends_list[k].client_list[i].client_id[j] < 16)
if(friends_list[k].client_list[i].client_id[j] < 16)
printf("0");
printf("%hhX", friends_list[k].client_list[i].client_id[j]);
}