summaryrefslogtreecommitdiffhomepage
path: root/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-02-05 23:34:35 +0100
committerTyge Løvset <[email protected]>2021-02-05 23:34:35 +0100
commitc4c903bb0cd9db33e1af0872b0b438f7da489c3c (patch)
tree3a4ebaba9f2c81039c0eaf23f66a37c5ff6d3e7f /stc
parent1ea2043900095c3548d30ba4520fda6f854263c1 (diff)
downloadSTC-modified-c4c903bb0cd9db33e1af0872b0b438f7da489c3c.tar.gz
STC-modified-c4c903bb0cd9db33e1af0872b0b438f7da489c3c.zip
Yet another bug in csmap.h fixed. SHould be good now.
Diffstat (limited to 'stc')
-rw-r--r--stc/csmap.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/stc/csmap.h b/stc/csmap.h
index ac51589c..4d897722 100644
--- a/stc/csmap.h
+++ b/stc/csmap.h
@@ -348,10 +348,9 @@ static struct csmap_rep _smap_inits = {0, 0, 0, 0};
return (C##_##X##_size_t) tn; \
} \
\
- STC_DEF void \
- C##_##X##_node_del_(C##_##X##_node_t *d, C##_##X##_size_t tn) { \
+ STC_INLINE void \
+ C##_##X##_node_unlink_(C##_##X##_node_t *d, C##_##X##_size_t tn) { \
struct csmap_rep *rep = c_container_of(d, struct csmap_rep, data); \
- keyDel(KEY_REF_##C(&d[tn].value)); \
d[tn].link[1] = (C##_##X##_size_t) rep->disp; \
rep->disp = tn; \
} \
@@ -463,7 +462,7 @@ static struct csmap_rep _smap_inits = {0, 0, 0, 0};
} else { /* unlink node */ \
tx = tn; \
tn = d[tn].link[ d[tn].link[0] == 0 ]; \
- C##_##X##_node_del_(d, tx); \
+ C##_##X##_node_unlink_(d, tx); \
} \
} \
tx = d[tn].link[1]; \