diff --git a/src/object.c b/src/object.c index 81a3fbb..0d359ad 100644 --- a/src/object.c +++ b/src/object.c @@ -52,6 +52,7 @@ Object *itemAt(const Object *listObj, int n) if(n-- == 0) return POINTER; } + return NULL; } /** @@ -130,7 +131,7 @@ void allocObject(Object **spot, const Object src) * @warning UNTESTED */ -void insertIntoList(Object *dest, unsigned ind, const Object src) +void insertIntoList(Object *dest, int ind, const Object src) { if(!dest || dest->type != TYPE_LIST) return; diff --git a/src/object.h b/src/object.h index afb70cb..cd9c5fb 100644 --- a/src/object.h +++ b/src/object.h @@ -101,7 +101,7 @@ int getType(const Object *obj); int isEmpty(const Object *obj); Object *tail(const Object *listObj); -void insertIntoList(Object *dest, unsigned ind, const Object src); +void insertIntoList(Object *dest, int ind, const Object src); void replaceListing(Object *list, int i, const Object src); void nf_addToList(Object *dest, Object src); void deleteList(Object *dest);