
12 Apr
2011
12 Apr
'11
8:56 p.m.
Dear Aaron Williams,
In message 201101311955.50902.Aaron.Williams@caviumnetworks.com you wrote:
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
include/common.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
Applied, after manually fixing the bad patch format ("---" separator line missing). I recommend to use "git format-patch" and "git send-email"!
Thanks.
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Vulcans believe peace should not depend on force.
-- Amanda, "Journey to Babel", stardate 3842.3