Blocks :
|
|
Duplicate :
|
|
Relates :
|
The MIN2/MAX2 functions are implemented using templates and require both arguments to be of the same type. This is a problem when one parameter is of size_t type and the second of uintx type and the platform has size_t defined as eg. unsigned long as on s390 (32-bit). A solution is to typecast the smaller type (uintx) to size_t which is of the same or larger size.
|