util: Fix MIN_NON_ZERO
commitb6ece2c6f37926a994bc564a9e55ef3be6016d8f
authorFam Zheng <famz@redhat.com>
Tue, 12 Jul 2016 06:48:33 +0000 (12 14:48 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 5 Aug 2016 21:03:16 +0000 (5 16:03 -0500)
tree64c3c8c2f8aa33217140b41777416a9d852a13db
parent8d7d7764d59845b64c0dbffec33e186abfa89d83
util: Fix MIN_NON_ZERO

MIN_NON_ZERO(1, 0) is evaluated to 0. Rewrite the macro to fix it.

Reported-by: Miroslav Rezanina <mrezanin@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1468306113-847-1-git-send-email-famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit d27ba624aa1dfe5c07cc01200d95967ffce905d9)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
include/qemu/osdep.h