diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-17 16:06:51 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:53 -0400 |
commit | f2c6e4b3621778103805fe4d5f384db3fcd96159 (patch) | |
tree | 9c6bfab3db4de826fd3dca70fb96cea934220c16 | |
parent | f2a53270c7d6bceae5441ed180516d3b76799680 (diff) | |
download | lwn-f2c6e4b3621778103805fe4d5f384db3fcd96159.tar.gz lwn-f2c6e4b3621778103805fe4d5f384db3fcd96159.zip |
bcachefs: Fix integer overflow warnings on 32 bit
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c index 12f4107662fc..e0c93da2523f 100644 --- a/fs/bcachefs/util.c +++ b/fs/bcachefs/util.c @@ -428,8 +428,8 @@ static const struct time_unit { { "us", NSEC_PER_USEC }, { "ms", NSEC_PER_MSEC }, { "s", NSEC_PER_SEC }, - { "m", NSEC_PER_SEC * 60}, - { "h", NSEC_PER_SEC * 3600}, + { "m", (u64) NSEC_PER_SEC * 60}, + { "h", (u64) NSEC_PER_SEC * 3600}, { "eon", U64_MAX }, }; |