On Oct 18, 2006, at 7:15 AM, Joerg Sonnenberger wrote:
On Wed, Oct 18, 2006 at 06:42:05AM -0700, Jason Thorpe wrote:Actually, I now that I think about it, I think you could coax lint into helping... modify lint to issue a warning about a constant that is being cast to a type when the constant would have already fit into that type's range. Make it a new lint option flag...I think that can give false warnings as well, e.g. when converting 0 toa pointer.
...so make lint test for casts to integral types.
Joerg
-- thorpej