浏览代码

modules_k/pua: Wrong type in local variable

- I used an int when I should heve used an unsigned int
pd 13 年之前
父节点
当前提交
65f41ac654
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules_k/pua/hash.c

+ 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)
 {
-	int hash_code;
+	unsigned int hash_code;
 
 	hash_code= core_hash(presentity->pres_uri,presentity->watcher_uri, HASH_SIZE);
 	lock_get(&HashT->p_records[hash_code].lock);