aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zdb
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2022-09-22 14:28:33 -0400
committerGitHub <[email protected]>2022-09-22 11:28:33 -0700
commite506a0ce40bd777a84ba1de8ed40df2154f7afb1 (patch)
tree24556ac73ceacee93fbba742f205eac50172007e /cmd/zdb
parentc629f0bf62e351355716f9870d6c2e377584b016 (diff)
Cleanup: Change 1 used in bitshifts to 1ULL
Coverity complains about this. It is not a bug as long as we never shift by more than 31, but it is not terrible to change the constants from 1 to 1ULL as clean up. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes #13914
Diffstat (limited to 'cmd/zdb')
-rw-r--r--cmd/zdb/zdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c
index 92df3dd16..a3a363ca5 100644
--- a/cmd/zdb/zdb.c
+++ b/cmd/zdb/zdb.c
@@ -6203,10 +6203,10 @@ zdb_check_for_obsolete_leaks(vdev_t *vd, zdb_cb_t *zcb)
*/
for (uint64_t inner_offset = 0;
inner_offset < DVA_GET_ASIZE(&vimep->vimep_dst);
- inner_offset += 1 << vd->vdev_ashift) {
+ inner_offset += 1ULL << vd->vdev_ashift) {
if (range_tree_contains(msp->ms_allocatable,
- offset + inner_offset, 1 << vd->vdev_ashift)) {
- obsolete_bytes += 1 << vd->vdev_ashift;
+ offset + inner_offset, 1ULL << vd->vdev_ashift)) {
+ obsolete_bytes += 1ULL << vd->vdev_ashift;
}
}