Messages in this thread |  | | | Date | Fri, 17 Aug 2001 04:29:42 +0200 | | From | Roman Zippel <> | | Subject | Re: 2.4.9 does not compile [PATCH] |
| |
Hi,
"David S. Miller" wrote:
> That is a legitimate operation, there is no reason to prevent people > from comparing signed and unsigned values. These type argument > min/max values allow people to specify what the comparison type > degenerates into.
Sure, but if people change something, they get a warning and can think _again_, your current macro prevents this. That hardcoded type is just to easy to miss and can introduce subtle bugs. The typeof version automatically chooses that largest of the types and possibly warns you. Why would you want something different?
bye, Roman - 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/
|  |