diff options
| author | ame <[email protected]> | 2024-05-12 21:00:33 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-05-12 21:00:33 -0500 |
| commit | a84adf91992f19581e05ac617af7c259ec6b9d33 (patch) | |
| tree | 3454974aa1a4e408dd1f4ad2116788d21024c1e4 /src/types/larray.c | |
| parent | 0e352b5254e53ff5410eaef0f2e6c973f7935ed7 (diff) | |
memopry stuff
Diffstat (limited to 'src/types/larray.c')
| -rw-r--r-- | src/types/larray.c | 3 |
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){
|
