summaryrefslogtreecommitdiffstats
path: root/block.c
diff options
context:
space:
mode:
Diffstat (limited to 'block.c')
-rw-r--r--block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block.c b/block.c
index 22aec97037..28d63d7e6b 100644
--- a/block.c
+++ b/block.c
@@ -765,7 +765,7 @@ static int guess_disk_lchs(BlockDriverState *bs,
int ret, i, heads, sectors, cylinders;
struct partition *p;
uint32_t nr_sects;
- int64_t nb_sectors;
+ uint64_t nb_sectors;
bdrv_get_geometry(bs, &nb_sectors);
@@ -805,7 +805,7 @@ void bdrv_guess_geometry(BlockDriverState *bs, int *pcyls, int *pheads, int *pse
{
int translation, lba_detected = 0;
int cylinders, heads, secs;
- int64_t nb_sectors;
+ uint64_t nb_sectors;
/* if a geometry hint is available, use it */
bdrv_get_geometry(bs, &nb_sectors);