Peter Maydell 127c84e1a5 block/qcow2.h: Avoid "1LL << 63" (shifts into sign bit)
The expression "1LL << 63" tries to shift the 1 into the sign bit of a
'long long', which provokes a clang sanitizer warning:

runtime error: left shift of 1 by 63 places cannot be represented in type 'long long'

Use "1ULL << 63" as the definition of QCOW_OFLAG_COPIED instead
to avoid this. For consistency, we also update the other QCOW_OFLAG
definitions to use the ULL suffix rather than LL, though only the
shift by 63 is undefined behaviour.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-08-30 15:28:52 +02:00
..
2013-08-19 15:52:19 +02:00
2013-08-19 15:52:19 +02:00
2013-08-19 15:52:19 +02:00
2013-08-19 15:52:19 +02:00
2013-06-24 10:25:17 +02:00
2013-06-24 10:25:17 +02:00
2013-08-12 09:15:11 -05:00
2013-08-19 15:52:19 +02:00
2013-08-19 15:52:19 +02:00
2013-08-19 15:52:19 +02:00
2013-08-22 15:35:58 +02:00
2013-06-28 10:21:00 +02:00