From 4c228f8fb186eeb671f798fae35a107b876d0df8 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 15 May 2020 04:57:51 +0100 Subject: [PATCH] Got Pebble compilation working again --- src/object.c | 3 ++- src/object.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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);