diff options
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -808,8 +808,10 @@ bool eval_size(const struct expr *expr, struct eval_state *state) { [SIZE_BYTES] = 1, [SIZE_WORDS] = 2, [SIZE_KB] = 1024, - [SIZE_MB] = 1024*1024, - [SIZE_GB] = 1024*1024*1024, + [SIZE_MB] = 1024LL*1024, + [SIZE_GB] = 1024LL*1024*1024, + [SIZE_TB] = 1024LL*1024*1024*1024, + [SIZE_PB] = 1024LL*1024*1024*1024*1024, }; off_t scale = scales[expr->size_unit]; |