Merge Trond.
[m6w6/libmemcached] / example / memcached_light.c
index 489ec1e4dd9e1e7f71d84f5cfa572ffcf654c337..c059f708eb09b09e94c39fd0fdf8c3a73920ca0c 100644 (file)
@@ -432,7 +432,7 @@ int main(int argc, char **argv)
     return 1;
   }
 
-  socket_userdata_map= calloc(maxconns, sizeof(struct connection));
+  socket_userdata_map= calloc((size_t)(maxconns), sizeof(struct connection));
   if (socket_userdata_map == NULL)
   {
     fprintf(stderr, "Failed to allocate room for connections\n");