]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
dmg: use uint64_t consistently for sectors and lengths
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 26 Mar 2014 12:05:59 +0000 (13:05 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Jul 2014 21:18:13 +0000 (16:18 -0500)
commitd400b5dc4acaa883d8e856a137c37f7aea1b2707
tree698f0ca3b11548887fe800b7e9c3d0a58fd4c733
parent758c4840c64d2f0faed18c16c02cbb2c2a3bdfe3
dmg: use uint64_t consistently for sectors and lengths

The DMG metadata is stored as uint64_t, so use the same type for
sector_num.  int was a particularly poor choice since it is only 32-bit
and would truncate large values.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 686d7148ec23402a172628c800022b3a95a022c9)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/dmg.c