瀏覽代碼

Fix a 32-big conversion warning in 11970 fix

Nick Mathewson 10 年之前
父節點
當前提交
7f3563058d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/sandbox.c

+ 1 - 1
src/common/sandbox.c

@@ -1352,7 +1352,7 @@ typedef struct cached_getaddrinfo_item_t {
 static unsigned
 cached_getaddrinfo_item_hash(const cached_getaddrinfo_item_t *item)
 {
-  return siphash24g(item->name, strlen(item->name)) + item->family;
+  return (unsigned)siphash24g(item->name, strlen(item->name)) + item->family;
 }
 
 static unsigned