Skip to content

Commit 5ac7f3d

Browse files
committed
Fix "comparison is always true due to limited range of data type" warning
1 parent 6d0abb4 commit 5ac7f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/DHT_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void print_friendlist()
8787
for(i = 0; i < 4; i++) {
8888
printf("ClientID: ");
8989
for(j = 0; j < 32; j++) {
90-
if(0 <= friends_list[k].client_list[i].client_id[j] && friends_list[k].client_list[i].client_id[j] < 16)
90+
if(friends_list[k].client_list[i].client_id[j] < 16)
9191
printf("0");
9292
printf("%hhX", friends_list[k].client_list[i].client_id[j]);
9393
}

0 commit comments

Comments
 (0)