> On 30/06/2011 20:37, Scott wrote: >> I would hope lint or a good compiler would throw a warning about >> "evaluation of>=3D 0 is always true" if the data type is unsigned int. >> Of course, this only applies if you're writing in a language higher >> than asm. > > And only applies if you are always 100% sure what all bounds are, have > all parts of system using a machine readable system spec and a tool that > can read the spec.... > I include bounds checking in my code (and hopefully get it right!). I remember Turbo Pascal under CP/M had a flag to enable and disable bounds checking. They suggested enabling it during development and disabling it when code was released to speed up the code. Harold --=20 FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .