aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorJia Liu <proljc@gmail.com>2013-08-21 09:31:36 +0800
committerJia Liu <proljc@gmail.com>2013-08-21 09:31:42 +0800
commit7717f248eebdcfe6de400404d0cf65dcb3633308 (patch)
tree60e36a0433148bd8d37cceafb3d19e4690b66b5b /qapi
parented396e2b2d256c1628de7c11841b509455a76c03 (diff)
downloadqemu-7717f248eebdcfe6de400404d0cf65dcb3633308.zip
qemu-7717f248eebdcfe6de400404d0cf65dcb3633308.tar.gz
qemu-7717f248eebdcfe6de400404d0cf65dcb3633308.tar.bz2
hw/openrisc: Avoid undefined shift in openrisc_pic_cpu_handler()
In C99 signed shift (1 << 31) is undefined behavior, since the result exceeds INT_MAX. Use 1U instead and move the shift after the check. Signed-off-by: Xi Wang <xi.wang@gmail.com> Acked-by: Jia Liu <proljc@gmail.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions