aboutsummaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2010-05-27 15:46:55 +0200
committerKevin Wolf <kwolf@redhat.com>2010-05-28 13:14:26 +0200
commitc63782cbe8bdc2c401ea710cef427de0214c5900 (patch)
tree4e2012de02841b4a9601ce27a83635dac7ef8d4e /block.h
parentb587a52c007efb9e100d99fa6c78461ad1901973 (diff)
downloadqemu-c63782cbe8bdc2c401ea710cef427de0214c5900.zip
qemu-c63782cbe8bdc2c401ea710cef427de0214c5900.tar.gz
qemu-c63782cbe8bdc2c401ea710cef427de0214c5900.tar.bz2
block.h: Make BDRV_SECTOR_SIZE 64 bit safe
C defaults to int, so make definition of BDRV_SECTOR_SIZE 64 bit safe as it and BDRV_SECTOR_MASK may be used against 64 bit addresses. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r--block.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.h b/block.h
index 9034ebb..756670d 100644
--- a/block.h
+++ b/block.h
@@ -38,7 +38,7 @@ typedef struct QEMUSnapshotInfo {
#define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_CACHE_WB)
#define BDRV_SECTOR_BITS 9
-#define BDRV_SECTOR_SIZE (1 << BDRV_SECTOR_BITS)
+#define BDRV_SECTOR_SIZE (1ULL << BDRV_SECTOR_BITS)
#define BDRV_SECTOR_MASK ~(BDRV_SECTOR_SIZE - 1)
typedef enum {