Skip to content
Snippets Groups Projects
Commit 1472af34 authored by Aaron Williams's avatar Aaron Williams Committed by Wolfgang Denk
Browse files

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: default avatarAaron Williams <aaron.williams@caviumnetworks.com>
parent 9096963c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment