OSDN Git Service

util: Fix MIN_NON_ZERO
authorFam Zheng <famz@redhat.com>
Tue, 12 Jul 2016 06:48:33 +0000 (14:48 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Jul 2016 10:55:11 +0000 (12:55 +0200)
commitd27ba624aa1dfe5c07cc01200d95967ffce905d9
tree5ea4f41fa49742e710757ffe8b0038cdb74b9b73
parent73f40c1895980dc705b6b0594ace6580b3f68537
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>
include/qemu/osdep.h