Messages in this thread | | | Date | Wed, 18 Aug 2004 16:14:15 -0700 | From | Paul Jackson <> | Subject | Re: warning: comparison is always false due to limited range of data type |
| |
Samuel wrote: > Here is another approach. This should never warning, and should get > optimized away as needed.
Yours looks like it has a better chance of not being broken by some future gcc enhancement that can see through the obfuscation in mine.
I didn't actually try it, but yours looks good to me.
Thanks.
-- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <pj@sgi.com> 1.650.933.1373 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |