Got Pebble compilation working again

This commit is contained in:
= 2020-05-15 04:57:51 +01:00
parent 1c82c6f726
commit 4c228f8fb1
2 changed files with 3 additions and 2 deletions

View File

@ -52,6 +52,7 @@ Object *itemAt(const Object *listObj, int n)
if(n-- == 0) if(n-- == 0)
return POINTER; return POINTER;
} }
return NULL;
} }
/** /**
@ -130,7 +131,7 @@ void allocObject(Object **spot, const Object src)
* @warning UNTESTED * @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) if(!dest || dest->type != TYPE_LIST)
return; return;

View File

@ -101,7 +101,7 @@ int getType(const Object *obj);
int isEmpty(const Object *obj); int isEmpty(const Object *obj);
Object *tail(const Object *listObj); 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 replaceListing(Object *list, int i, const Object src);
void nf_addToList(Object *dest, Object src); void nf_addToList(Object *dest, Object src);
void deleteList(Object *dest); void deleteList(Object *dest);