]> git.proxmox.com Git - mirror_qemu.git/commit
disas/cris.c: Avoid unintentional sign extension
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 31 Mar 2017 14:31:11 +0000 (15:31 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 3 Apr 2017 13:06:59 +0000 (14:06 +0100)
commit230f4c6bc5c9af3c8a1fd033641f2bfb8ed45c1b
tree9d7bcd52ccdac419bad2450a22d309bba0cf4378
parent6499fd151daa88a136939775dd6002235cafb193
disas/cris.c: Avoid unintentional sign extension

Commit 001ebaca7b11 fixed some unintended sign extension issues
spotted by Coverity (CID 10054021005403), but didn't catch
all of them. Fix the rest, so we behave consistently whether
'long' is 32 bit or 64 bit.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 1490970671-20560-1-git-send-email-peter.maydell@linaro.org
disas/cris.c