nope, size_t is allowed to be (size_t) -1


On Wed, Feb 26, 2014 at 3:59 PM, Edward Welbourne
<notifications@github.com>wrote:

> In cf-serverd/strlist.c:
>
> > @@ -625,7 +625,7 @@ size_t StrList_SearchLongestPrefix(const StrList *sl,
> >          /*        s, s_len, s_prefix_len); */
> >          assert(s_prefix_len <= s_len);
> >
> > -        if (found != -1)
> > +        if (found != (size_t) -1)
>
> If its value can be -1, the variable should be ssize_t, not size_t.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cfengine/core/pull/1349/files#r10082201>
> .
>