aboutsummaryrefslogtreecommitdiff
path: root/src/types/larray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/larray.c')
-rw-r--r--src/types/larray.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/types/larray.c b/src/types/larray.c
index 7a5afbc..2e9a5b4 100644
--- a/src/types/larray.c
+++ b/src/types/larray.c
@@ -29,7 +29,7 @@ void larray_expand(larray_t** _l){
*_l = remade;
}
-void larray_set(larray_t** _l, uint64_t idx, void* value){
+int larray_set(larray_t** _l, uint64_t idx, void* value){
larray_t* l = *_l;
if(l->len + 1 >= l->size){
@@ -51,6 +51,7 @@ void larray_set(larray_t** _l, uint64_t idx, void* value){
l->len++;
*_l = l;
+ return ind;
}
int larray_geti(larray_t* l, uint64_t idx){