commit | a147bb18403283dce7643071fdc0e9a9effadacc | [log] [tgz] |
---|---|---|
author | Aaron Williams <Aaron.Williams@caviumnetworks.com> | Mon Jan 31 19:55:50 2011 -0800 |
committer | Wolfgang Denk <wd@denx.de> | Tue Apr 12 22:58:30 2011 +0200 |
tree | 5bfb30387171d3f91911bd0803c2f8e2d6623f0b | |
parent | 182d9751f39b24d1be7b1f693cd0b48be8ec71c6 [diff] |
Fix min/max macros in include/common.h There is a bug in the min and max macros in common.h which occurs if Y is a larger type than X. For example, if Y is a 64-bit value and X is a 32-bit value then Y will be truncated to 32-bits. This fix matches what is done in the Linux kernel but without the additional type checking present in the kernel version. Signed-off-by: Aaron Williams <aaron.williams@caviumnetworks.com>