James Hawkins wrote:
On 4/7/06, Robert Shearman <[EMAIL PROTECTED]> wrote:

strlen returns a value of type size_t, which is an unsigned value, so
this is always going to be positive.


But strlenW returns an int. I think this is the thing that Coverity is
picking up on.



strlenW from include/wine/unicode.h returns unsigned int :)

--
James Hawkins




#include <stdio.h>
int main(void)
{
  short int i;
  unsigned short int j;
  j = 65534;
  i = j + 1;
  printf("The result is %d\n", i);
  return 0;
}

Colin


Reply via email to