src/kv_list.c

changeset 1675
36c0fb2b60b2
parent 1618
ef7cab6eb131
equal deleted inserted replaced
1674:8b0f162ac88e 1675:36c0fb2b60b2
513 513
514 return iter; 514 return iter;
515 } 515 }
516 516
517 static int cx_kvl_change_capacity(struct cx_list_s *list, 517 static int cx_kvl_change_capacity(struct cx_list_s *list,
518 cx_attr_unused size_t cap) { 518 CX_UNUSED size_t cap) {
519 // since our backing list is a linked list, we don't need to do much here, 519 // since our backing list is a linked list, we don't need to do much here,
520 // but rehashing the map is quite useful 520 // but rehashing the map is quite useful
521 cx_kv_list *kv_list = (cx_kv_list*)list; 521 cx_kv_list *kv_list = (cx_kv_list*)list;
522 cxMapRehash(&kv_list->map->map_base.base); 522 cxMapRehash(&kv_list->map->map_base.base);
523 return 0; 523 return 0;

mercurial