Index: trunk/src/view.c =================================================================== --- trunk/src/view.c (revision 21275) +++ trunk/src/view.c (revision 21276) @@ -81,10 +81,10 @@ return NULL; } -pcb_view_t *pcb_view_by_uid_cnt(const pcb_view_list_t *lst, unsigned long int uid, size_t *cnt) +pcb_view_t *pcb_view_by_uid_cnt(const pcb_view_list_t *lst, unsigned long int uid, long *cnt) { pcb_view_t *v; - size_t c = 0; + long c = 0; for(v = pcb_view_list_first((pcb_view_list_t *)lst); v != NULL; v = pcb_view_list_next(v), cnt++) { if (v->uid == uid) { Index: trunk/src/view.h =================================================================== --- trunk/src/view.h (revision 21275) +++ trunk/src/view.h (revision 21276) @@ -96,7 +96,7 @@ /* Slow, linear search for an UID in a list; returns NULL if not found; optionally count the number of preceeding items and sotre it in cnt. */ pcb_view_t *pcb_view_by_uid(const pcb_view_list_t *lst, unsigned long int uid); -pcb_view_t *pcb_view_by_uid_cnt(const pcb_view_list_t *lst, unsigned long int uid, size_t *cnt); +pcb_view_t *pcb_view_by_uid_cnt(const pcb_view_list_t *lst, unsigned long int uid, long *cnt); /* Zoom the drawing area to the drc error */ void pcb_view_goto(pcb_view_t *item);