aboutsummaryrefslogtreecommitdiff
path: root/xs.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-15 13:27:23 +0200
committerdefault <nobody@localhost>2024-05-15 13:27:23 +0200
commitff8d49a8991977e07cf6bb50156b2ffda08d0c0e (patch)
tree6de74de6401df99d2071db04a42124ce441b27a3 /xs.h
parentd5316497760bffd869ff2b80bebaa613798a6476 (diff)
Use xs_regex_match() where applicable.
Diffstat (limited to 'xs.h')
-rw-r--r--xs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs.h b/xs.h
index ad72207..f5c87ef 100644
--- a/xs.h
+++ b/xs.h
@@ -1049,7 +1049,7 @@ xs_dict *xs_dict_append(xs_dict *dict, const xs_str *key, const xs_val *value)
xs_dict *xs_dict_prepend(xs_dict *dict, const xs_str *key, const xs_val *value)
/* prepends a memory block to the dict */
{
- return _xs_dict_write_ditem(dict, 4, key, value, xs_size(value));
+ return _xs_dict_write_ditem(dict, 1 + _XS_TYPE_SIZE, key, value, xs_size(value));
}