Update list (vtype_variable)
This commit is contained in:
parent
a4c95fe95e
commit
6661b12741
@ -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;
|
||||
size_t n;
|
||||
@ -46,7 +46,7 @@ size_t libcdsb_list_count(const list_t* s, const void* v, vtype t) {
|
||||
n = 0;
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user