if that's your concern, we can easily fix this by still moving min/max
to its same form.
#define type_min(type,x,y) \
({ type __x = (x), __y = (y); __x < __y ? __x: __y; })
#define type_max(type,x,y) \
({ type __x = (x), __y = (y); __x > __y ? __x: __y; })
#define min(x,y) type_min(typeof(x),x,y)
#define max(x,y) type_max(typeof(x),x,y)
no _implicit_ cast and ...
> One of the arguments gets changed invisibly, and that is what kernel
> developers are so upset about. You don't really know which one without
> thinking hard about it, and that is a source of many hard-to-find bugs.
... joy, we would even know which one.
--
mfg,
Dipl.-Ing. H.Rosmanith Karrer & Partner Gesellschaft mbH
Freistaedter Str. 236, A-4040 Linz, Tel. +43/732/75 71 30
Fax. +43/732/75 71 44
-
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/