summary refs log tree commit diff stats
path: root/scripts/qapi-types.py
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 /scripts/qapi-types.py
parented396e2b2d256c1628de7c11841b509455a76c03 (diff)
downloadfocaccia-qemu-7717f248eebdcfe6de400404d0cf65dcb3633308.tar.gz
focaccia-qemu-7717f248eebdcfe6de400404d0cf65dcb3633308.zip
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 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions