Explorar o código

Fix a 32-big conversion warning in 11970 fix

Nick Mathewson %!s(int64=10) %!d(string=hai) anos
pai
achega
7f3563058d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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