From 5ac7f3d99084d519e7eddcf40e7d81e8b91400f0 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 30 Jul 2013 22:41:09 +0400 Subject: Fix "comparison is always true due to limited range of data type" warning --- testing/DHT_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/DHT_test.c b/testing/DHT_test.c index a215463d..588450e2 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c @@ -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]); } -- cgit v1.2.3