[argyllcms] Re: "Development in progress" 2nd update

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Fri, 14 Jul 2006 12:35:18 +1000

Gerhard Fuernkranz wrote:

I guess, the new unstructured dump format for CLUT tables isn't really desired, is it? ;-)

I'm not very impressed by the warnings out of VC++ /W4. It objected to this:

        unsigned int count = 4;
        int j;
        for (j = 0; j < count; j++)
                do stuff

because j and count are a signed/unsigned mismatch
but not this

        unsigned int count = 4;
        unsigned int j;
        for (j = count-1; j >= 0; j--)
                do stuff

in which j >= 0 is always true.
gcc didn't notice it always true either.

thanks,
Graeme.

Other related posts: