Update list (vtype_variable)

This commit is contained in:
Gregory Lirent 2023-03-23 17:20:13 +03:00
parent a4c95fe95e
commit 6661b12741

View File

@ -36,7 +36,7 @@ hash_t list_hash(const list_t* s) {
} }
size_t libcdsb_list_count(const list_t* s, const void* v, vtype t) { size_t libcdsb_list_count(const list_t* s, vtype_variable value) {
lnode_t* c; lnode_t* c;
size_t n; size_t n;
@ -46,7 +46,7 @@ size_t libcdsb_list_count(const list_t* s, const void* v, vtype t) {
n = 0; n = 0;
while (!is_null(c)) { while (!is_null(c)) {
cmp = vtype_compare(vnode_peek(&c->node, c->type), c->type, v, t); cmp = vtype_compare(vnode_peek(&c->node, c->type), c->type, value.pointer, value.type);
if (cmp == 0) ++n; if (cmp == 0) ++n;