aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/builtin-functions.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-kbdc/builtin-functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-kbdc/builtin-functions.c b/src/mds-kbdc/builtin-functions.c
index 7cd13b7..3ad4e83 100644
--- a/src/mds-kbdc/builtin-functions.c
+++ b/src/mds-kbdc/builtin-functions.c
@@ -282,7 +282,7 @@ static char32_t* builtin_function_get_2(const char32_t** restrict args)
const char32_t* restrict b = *args++;
char32_t* restrict rc;
size_t n = (size_t)*b;
- mds_kbdc_tree_t* value = variables_get((size_t)*a);
+ mds_kbdc_tree_t* value = variables_get((size_t)*a)->array.elements;
while (n--)
value = value->next;
fail_if (rc = string_dup(value->compiled_string.string), rc == NULL);
@@ -303,7 +303,7 @@ static char32_t* builtin_function_set_3(const char32_t** restrict args)
const char32_t* restrict c = *args++;
char32_t* restrict rc;
size_t n = (size_t)*b;
- mds_kbdc_tree_t* value = variables_get((size_t)*a);
+ mds_kbdc_tree_t* value = variables_get((size_t)*a)->array.elements;
while (n--)
value = value->next;
free(value->compiled_string.string);