]> git.ipfire.org Git - thirdparty/qemu.git/commit
xen-all.c: fix multiply issue for int and uint types
authorDongxiao Xu <dongxiao.xu@intel.com>
Wed, 22 Aug 2012 10:17:43 +0000 (10:17 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 28 Aug 2012 06:50:02 +0000 (01:50 -0500)
commit07548727b3ef25c63ed5a3f068f46059963490c6
tree8f4b49410ccc2486733ccb723efa8bcc7d818456
parentc7e6d6b1158910460b395232faeb053593da2a96
xen-all.c: fix multiply issue for int and uint types

If the two multiply operands are int and uint types separately,
the int type will be transformed to uint firstly, which is not the
intent in our code piece. The fix is to add (int64_t) transform
for the uint type before the multiply.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
(cherry picked from commit 14d40183725361e6350166099556c7661063921b)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
xen-all.c