"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/libponyrt/ds/list.c" between
ponyc-0.33.1.tar.gz and ponyc-0.33.2.tar.gz

About: Pony is an object-oriented, actor-model, capabilities-secure, high performance programming language.

list.c  (ponyc-0.33.1):list.c  (ponyc-0.33.2)
skipping to change at line 52 skipping to change at line 52
} }
list_t* ponyint_list_next(list_t* list) list_t* ponyint_list_next(list_t* list)
{ {
return list->next; return list->next;
} }
list_t* ponyint_list_index(list_t* list, ssize_t index) list_t* ponyint_list_index(list_t* list, ssize_t index)
{ {
if(index < 0) if(index < 0)
index = ponyint_list_length(list) + index; index = (ssize_t)ponyint_list_length(list) + index;
for(int i = 0; (list != NULL) && (i < index); i++) for(int i = 0; (list != NULL) && (i < index); i++)
list = list->next; list = list->next;
return list; return list;
} }
void* ponyint_list_data(list_t* list) void* ponyint_list_data(list_t* list)
{ {
return list->data; return list->data;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)