Skip to content

Commit 5f70664

Browse files
committed
Simplify expression
1 parent d030301 commit 5f70664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_simd/src/swizzle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ where
340340
let mut i = 0;
341341
while i < LANES {
342342
// Treat the source as a concatenated vector
343-
let src_index = i * 2 + if second { 1 } else { 0 };
343+
let src_index = i * 2 + second as usize;
344344
idx[i] = if src_index < LANES {
345345
Which::First(src_index)
346346
} else {

0 commit comments

Comments
 (0)