Browse Source

pua: solved warning on comparing unsigned expression

Daniel-Constantin Mierla 11 năm trước cách đây
mục cha
commit
55b42c5ba9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/pua/pua.c

+ 1 - 1
modules/pua/pua.c

@@ -989,7 +989,7 @@ static void db_update(unsigned int ticks,void *param)
 		p = HashT->p_records[i].entity->next;
 		while(p)
 		{
-			if(p->expires - (int)time(NULL)< 0)	
+			if((int)p->expires - (int)time(NULL)< 0)	
 			{
 				p= p->next;
 				continue;