diff options
author | Jia Liu <proljc@gmail.com> | 2013-08-21 09:31:36 +0800 |
---|---|---|
committer | Jia Liu <proljc@gmail.com> | 2013-08-21 09:31:42 +0800 |
commit | 7717f248eebdcfe6de400404d0cf65dcb3633308 (patch) | |
tree | 60e36a0433148bd8d37cceafb3d19e4690b66b5b /qapi | |
parent | ed396e2b2d256c1628de7c11841b509455a76c03 (diff) | |
download | qemu-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