summaryrefslogtreecommitdiff
path: root/lib/string.c
diff options
context:
space:
mode:
authorAaron Williams <Aaron.Williams@caviumnetworks.com>2011-01-31 19:55:50 -0800
committerWolfgang Denk <wd@denx.de>2011-04-12 22:58:30 +0200
commit1472af34c17744d0ae5979efd0c625c10d67797c (patch)
tree5bfb30387171d3f91911bd0803c2f8e2d6623f0b /lib/string.c
parent9096963c729cc05633f2104ec9b79be732c7b1ac (diff)
downloadu-boot-imx-1472af34c17744d0ae5979efd0c625c10d67797c.zip
u-boot-imx-1472af34c17744d0ae5979efd0c625c10d67797c.tar.gz
u-boot-imx-1472af34c17744d0ae5979efd0c625c10d67797c.tar.bz2
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>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions