Browse Source

Fix a 32-big conversion warning in 11970 fix

Nick Mathewson 10 years ago
parent
commit
7f3563058d
1 changed files with 1 additions and 1 deletions
  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