Fix overflow in the TERA/TEBI definition

This commit is contained in:
Andrea Mazzoleni 2026-06-03 17:12:23 +02:00
parent 6f1fb3b397
commit 447b1fd067
2 changed files with 6 additions and 6 deletions

View file

@ -36,11 +36,11 @@ const char* lev_config_name(unsigned level);
#define KILO (1000)
#define MEGA (1000 * 1000)
#define GIGA (1000 * 1000 * 1000)
#define TERA (1000 * 1000 * 1000 * 1000UL)
#define TERA (1000 * 1000 * 1000 * (uint64_t)1000)
#define KIBI (1024)
#define MEBI (1024 * 1024)
#define GIBI (1024 * 1024 * 1024)
#define TEBI (1024 * 1024 * 1024 * 1024UL)
#define TEBI (1024 * 1024 * 1024 * (uint64_t)1024)
#define SORT_PHYSICAL 1 /**< Sort by physical order. */
#define SORT_INODE 2 /**< Sort by inode. */