2
0
Эх сурвалжийг харах

modules_k/pua: Wrong type in local variable

- I used an int when I should heve used an unsigned int
pd 13 жил өмнө
parent
commit
65f41ac654

+ 1 - 1
modules_k/pua/hash.c

@@ -255,7 +255,7 @@ void _insert_htable(ua_pres_t* presentity, unsigned int hash_code)
 
 
 void insert_htable(ua_pres_t* presentity)
 void insert_htable(ua_pres_t* presentity)
 {
 {
-	int hash_code;
+	unsigned int hash_code;
 
 
 	hash_code= core_hash(presentity->pres_uri,presentity->watcher_uri, HASH_SIZE);
 	hash_code= core_hash(presentity->pres_uri,presentity->watcher_uri, HASH_SIZE);
 	lock_get(&HashT->p_records[hash_code].lock);
 	lock_get(&HashT->p_records[hash_code].lock);