wtv: Make WTV_SECTOR_BITS a 64 bit constant

This makes sure that values that are left-shifted by this constant
end up casted to 64 bit before shifting, avoiding overflow if the
value ends up larger than 2 GB.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2013-07-24 12:21:49 +03:00
parent 80ade7985c
commit 86f042dcab
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@
*
*/
#define WTV_SECTOR_BITS 12
#define WTV_SECTOR_BITS INT64_C(12)
#define WTV_SECTOR_SIZE (1 << WTV_SECTOR_BITS)
#define WTV_BIGSECTOR_BITS 18