aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/raidz_test/raidz_test.c
diff options
context:
space:
mode:
authorAndrew Innes <[email protected]>2022-10-29 00:30:37 +0800
committerGitHub <[email protected]>2022-10-28 09:30:37 -0700
commite09fdda9775d47078a9dff9d958faf25cf8ca9e8 (patch)
tree9eb7907be8fda1bd8b6a3b068dd54aaf7f8bcacb /cmd/raidz_test/raidz_test.c
parent5d0fd8429b0257b2dcd80cef9ed13c8293c1060d (diff)
Fix multiplication converted to larger type
This fixes the instances of the "Multiplication result converted to larger type" alert that codeQL scanning found. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Richard Yao <[email protected]> Signed-off-by: Andrew Innes <[email protected]> Closes #14094
Diffstat (limited to 'cmd/raidz_test/raidz_test.c')
-rw-r--r--cmd/raidz_test/raidz_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/raidz_test/raidz_test.c b/cmd/raidz_test/raidz_test.c
index 34f3f6f1c..195026d3a 100644
--- a/cmd/raidz_test/raidz_test.c
+++ b/cmd/raidz_test/raidz_test.c
@@ -937,7 +937,7 @@ run_sweep(void)
opts = umem_zalloc(sizeof (raidz_test_opts_t), UMEM_NOFAIL);
opts->rto_ashift = ashift_v[a];
opts->rto_dcols = dcols_v[d];
- opts->rto_offset = (1 << ashift_v[a]) * rand();
+ opts->rto_offset = (1ULL << ashift_v[a]) * rand();
opts->rto_dsize = size_v[s];
opts->rto_expand = rto_opts.rto_expand;
opts->rto_expand_offset = rto_opts.rto_expand_offset;