]> git.proxmox.com Git - 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)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 22 Aug 2012 10:17:43 +0000 (10:17 +0000)
commit14d40183725361e6350166099556c7661063921b
treeaed671fda5f1191ac71dc715db0e95841f318afc
parent27b7652ef515bb4c694f79d657d2052c72b19536
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>
xen-all.c