[Qemu-devel] [PATCH] xen-all.c: fix multiply issue for int and uint types

2012-08-22 Thread Dongxiao Xu
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...@intel.com --- xen-all.c

Re: [Qemu-devel] [PATCH] xen-all.c: fix multiply issue for int and uint types

2012-08-22 Thread Stefano Stabellini
On Wed, 22 Aug 2012, Dongxiao Xu wrote: 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: