Commit 86f042dc authored by Martin Storsjö's avatar Martin Storsjö

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: 's avatarMartin Storsjö <martin@martin.st>
parent 80ade798
...@@ -48,7 +48,7 @@ ...@@ -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_SECTOR_SIZE (1 << WTV_SECTOR_BITS)
#define WTV_BIGSECTOR_BITS 18 #define WTV_BIGSECTOR_BITS 18
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment