From 6661b12741e25d74f5dd082f933aa63258dee678 Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Thu, 23 Mar 2023 17:20:13 +0300 Subject: [PATCH] Update list (vtype_variable) --- src/list/compute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/list/compute.c b/src/list/compute.c index 7d40aee..bfe75cc 100644 --- a/src/list/compute.c +++ b/src/list/compute.c @@ -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;