]> Git Repo - qemu.git/commit - xen-all.c
xen-all.c: fix multiply issue for int and uint types
authorDongxiao Xu <[email protected]>
Wed, 22 Aug 2012 10:17:43 +0000 (10:17 +0000)
committerStefano Stabellini <[email protected]>
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 <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
xen-all.c
This page took 0.024769 seconds and 4 git commands to generate.