]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
xen-all.c: fix multiply issue for int and uint types
authorDongxiao Xu <dongxiao.xu@intel.com>
Mon, 10 Sep 2012 15:29:29 +0000 (15:29 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 10 Sep 2012 15:29:29 +0000 (15:29 +0000)
commit9e63a82dd13cdfc80c1f401cc99a682ab4b81542
tree6f75f61dae5a739058c968e45eaa75beddb044cd
parent87650d262dea07c955a683dcac75db86477c7ee3
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.

upstream-commit: 14d40183725361e6350166099556c7661063921b

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-all.c