diff options
| author | Peter Maydell | 2014-03-28 16:12:57 +0100 |
|---|---|---|
| committer | Michael Tokarev | 2014-04-18 08:33:36 +0200 |
| commit | 968fc24d843c9e9b24231ca1960b47ef2fc724ea (patch) | |
| tree | 91aa8106991d263be7f484064db73b41c89c6772 /scripts | |
| parent | int128.h: Avoid undefined behaviours involving signed arithmetic (diff) | |
| download | qemu-968fc24d843c9e9b24231ca1960b47ef2fc724ea.tar.gz qemu-968fc24d843c9e9b24231ca1960b47ef2fc724ea.tar.xz qemu-968fc24d843c9e9b24231ca1960b47ef2fc724ea.zip | |
xbzrle.c: Avoid undefined behaviour with signed arithmetic
Use unsigned types for doing bitwise arithmetic in the xzbrle
calculations, to avoid undefined behaviour:
xbzrle.c:99:49: runtime error: left shift of 72340172838076673
by 7 places cannot be represented in type 'long'
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
