From: brarcher Date: Mon, 23 Sep 2013 17:58:11 +0000 (+0000) Subject: The number of elements in a list is now unsigned X-Git-Tag: 0.10.0~421 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5b84f97f4cab72033a6a74f28f73d05e670c187;p=check The number of elements in a list is now unsigned there can never be a negative number of elements in a list. Changing the values to unsigned to enforce this. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@793 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/src/check_list.c b/src/check_list.c index fceb03a..df58478 100644 --- a/src/check_list.c +++ b/src/check_list.c @@ -33,8 +33,8 @@ enum { }; struct List { - int n_elts; - int max_elts; + unsigned int n_elts; + unsigned int max_elts; int current; /* pointer to the current node */ int last; /* pointer to the node before END */ const void **data;